- Jan 14, 2013
-
-
David Greene authored
Use const_cast<> to avoid cast-away-const errors. llvm-svn: 172464
-
Andrew Trick authored
Note that this bug is only exposed because LTO fails to use TTI. Fixes self-LTO of clang. rdar://13007381. llvm-svn: 172462
-
Nick Lewycky authored
llvm-svn: 172460
-
Argyrios Kyrtzidis authored
initial size and an allocator. llvm-svn: 172455
-
Joe Groff authored
llvm-svn: 172454
-
Joe Groff authored
Use the existing move implementation of the internal DenseMap::InsertIntoBucket method to provide a user-facing move insert method. llvm-svn: 172453
-
Michael Gottesman authored
llvm-svn: 172452
-
Eli Bendersky authored
Now that it behaves itself in terms of streamer independence (r172450), this method can be moved to MCAsmParser to be available to all extensions, overriding, etc. -- -This line, and those below, will be ignored-- M lib/MC/MCParser/AsmParser.cpp M include/llvm/MC/MCParser/MCAsmParser.h llvm-svn: 172451
-
Eli Bendersky authored
The aim of this patch is to fix the following piece of code in the platform-independent AsmParser: void AsmParser::CheckForValidSection() { if (!ParsingInlineAsm && !getStreamer().getCurrentSection()) { TokError("expected section directive before assembly directive"); Out.SwitchSection(Ctx.getMachOSection( "__TEXT", "__text", MCSectionMachO::S_ATTR_PURE_INSTRUCTIONS, 0, SectionKind::getText())); } } This was added for the "-n" option of llvm-mc. The proposed fix adds another virtual method to MCStreamer, called InitToTextSection. Conceptually, it's similar to the existing InitSections which initializes all common sections and switches to text. The new method is implemented by each platform streamer in a way that it sees fit. So AsmParser can now do this: void AsmParser::CheckForValidSection() { if (!ParsingInlineAsm && !getStreamer().getCurrentSection()) { TokError("expected section directive before assembly directive"); Out.InitToTextSection(); } } Which is much more reasonable. llvm-svn: 172450
-
Eli Bendersky authored
Since it's used by extensions. One further step to fully decoupling GenericAsmParser from an intimate knowledge of the internals of AsmParser, pointing it to the MCASmParser interface instead (like all other parser extensions do). Since this change moves the MacroArgument type to the interface header, it's renamed to be a bit more descriptive in a general context. llvm-svn: 172449
-
Eli Bendersky authored
The methods are also exposed via the MCAsmParser interface, which allows more than one client to control them. Previously, GenericAsmParser was playing with a member var in AsmParser directly (by virtue of being its friend). llvm-svn: 172440
-
Timur Iskhodzhanov authored
llvm-svn: 172411
-
Craig Topper authored
llvm-svn: 172379
-
Craig Topper authored
Create a single multiclass for SSE and AVX version of MOVL/MOVH. Prevents needing to specify everything twice. No functional change intended llvm-svn: 172378
-
Michael Gottesman authored
llvm-svn: 172374
-
Michael Gottesman authored
Updated the documentation in ObjCARC.cpp to fit the style guide better (i.e. use doxygen). Still some work to do though. llvm-svn: 172371
-
- Jan 13, 2013
-
-
Michael Gottesman authored
llvm-svn: 172369
-
Michael Gottesman authored
Fixed an infinite loop in the block escape in analysis in ObjCARC caused by 2x blocks each assigned a value via a phi-node causing each to depend on the other. A test case is provided as well. llvm-svn: 172368
-
Nick Lewycky authored
llvm-svn: 172364
-
Nuno Lopes authored
cache result of Size/OffsetVisitor to speedup analysis of PHI nodes llvm-svn: 172363
-
Dmitri Gribenko authored
llvm-svn: 172360
-
Dmitri Gribenko authored
llvm-svn: 172359
-
Dmitri Gribenko authored
llvm-svn: 172358
-
Dmitri Gribenko authored
llvm-svn: 172356
-
Benjamin Kramer authored
Those can occur when something between the sextload and the store is on the same chain and blocks isel. Fixes PR14887. llvm-svn: 172353
-
Nadav Rotem authored
llvm-svn: 172348
-
Michael Gottesman authored
llvm-svn: 172347
-
Michael Gottesman authored
llvm-svn: 172346
-
Chandler Carruth authored
case, but looking at the diff this was an obviously unintended change. Thanks for the careful review Bill! =] llvm-svn: 172336
-
- Jan 12, 2013
-
-
Tim Northover authored
llvm-svn: 172325
-
Benjamin Kramer authored
Shifting right two times will only yield zero. Should fix SingleSource/UnitTests/SignlessTypes/factor. llvm-svn: 172322
-
NAKAMURA Takumi authored
MipsDisassembler.cpp: Prune DecodeHWRegs64RegisterClass() to suppress a warning. [-Wunused-function] llvm-svn: 172319
-
Benjamin Kramer authored
Found by valgrind. llvm-svn: 172318
-
NAKAMURA Takumi authored
llvm-svn: 172315
-
Benjamin Kramer authored
The folding set details can be subtle and broke twice in the last couple of weeks. llvm-svn: 172313
-
Tim Northover authored
llvm-svn: 172312
-
Michael Gottesman authored
llvm-svn: 172299
-
Michael Gottesman authored
llvm-svn: 172298
-
rdar://problem/13001651Bob Wilson authored
I give up trying to get all of the settings into COMMON_MAKEFLAGS, so just do the easy thing and repeat the ones with interesting quoting issues in each make command. llvm-svn: 172296
-
Michael Gottesman authored
Fixed bug in ObjCARC where we were changing a call from objc_autoreleaseRV => objc_autorelease but were not updating the InstructionClass to IC_Autorelease. llvm-svn: 172288
-