- Feb 01, 2013
-
-
Nadav Rotem authored
Found by Alexander Kornienko. llvm-svn: 174207
-
Jim Grosbach authored
llvm-svn: 174205
-
Chad Rosier authored
llvm-svn: 174198
-
Jyotsna Verma authored
llvm-svn: 174196
-
Jyotsna Verma authored
llvm-svn: 174193
-
Jyotsna Verma authored
llvm-svn: 174186
-
Benjamin Kramer authored
Prepare it for vectors of pointers and handle simple cases. We don't handle complicated cases because accumulateConstantOffset bails on pointer vectors. Fixes selfhost on i386. llvm-svn: 174179
-
Tim Northover authored
This should fix a warning when building this backend. llvm-svn: 174177
-
Tim Northover authored
Only Linux is supported at the moment, and other platforms quickly fault. As a result these tests would fail on non-Linux hosts. It may be worth making the tests more generic again as more platforms are supported. llvm-svn: 174170
-
Nadav Rotem authored
llvm-svn: 174156
-
Nadav Rotem authored
llvm-svn: 174152
-
Sean Silva authored
My "excuse" for not refactoring the grammar here is to not diverge too far from the grammar in the comments of TGParser.cpp, since I'm not taking on the quest of majorly refactoring TGParser.cpp at the moment. One benefit of doing this is that Ideas for refactoring and clarifying the grammar in this document should translate almost immediately to beneficial refactorings that can be made to TGParser.cpp. llvm-svn: 174144
-
Sean Silva authored
Spotted by Eli Bendersky. llvm-svn: 174143
-
Andrew Trick authored
Drive by fix. I noticed some missing logic that might bite future users. This shouldn't affect the final output on currently modeled targets. llvm-svn: 174142
-
Bill Wendling authored
llvm-svn: 174132
-
Dan Gohman authored
llvm-svn: 174131
-
Bill Wendling authored
llvm-svn: 174130
-
Bill Wendling authored
Use iterators instead of relying upon a bitmask of attributes to remove attributes from an AttrBuilder. llvm-svn: 174123
-
Dan Gohman authored
remaining use of AliasAnalysis concepts such as isIdentifiedObject to prove pointer inequality. @external_compare in test/Transforms/InstSimplify/compare.ll shows a simple case where a noalias argument can be equal to a global variable address, and while AliasAnalysis can get away with saying that these pointers don't alias, instsimplify cannot say that they are not equal. llvm-svn: 174122
-
Chandler Carruth authored
have any effect. Spotted by Eli in review, thanks!!! llvm-svn: 174121
-
Bill Wendling authored
llvm-svn: 174120
-
Dan Gohman authored
be equal, since there's nothing preventing a caller from correctly predicting the stack location of an alloca. llvm-svn: 174119
-
Chandler Carruth authored
infrastructure on MCStreamer to test for whether there is an MCELFStreamer object available. This is just a cleanup on the AsmPrinter side of things, moving ad-hoc tests of random APIs to a direct type query. But the AsmParser completely broken. There were no tests, it just blindly cast its streamer to an MCELFStreamer and started manipulating it. I don't have a test case -- this actually failed on LLVM's own regression test suite. Unfortunately the failure only appears when the stars, compilers, and runtime align to misbehave when we read a pointer to a formatted_raw_ostream as-if it were an MCAssembler. =/ UBSan would catch this immediately. Many thanks to Matt for doing about 80% of the debugging work here in GDB, Jim for helping to explain how exactly to fix this, and others for putting up with the hair pulling that ensued during debugging it. llvm-svn: 174118
-
Chandler Carruth authored
caught this, but I want that in a separate commit in case there is a need to revert the actual functional bit as part of reverting other patches. This way, the commits relating to just getting the RTTI bits in place are separate from the functional changes that start using them. llvm-svn: 174117
-
Bill Wendling authored
s/AttrBuilder::addAttributes/AttrBuilder::addAttribute/g because that's more descriptive of what it actually is. llvm-svn: 174116
-
Chandler Carruth authored
llvm-svn: 174115
-
Chandler Carruth authored
isa<> and dyn_cast<>. In several places, code is already hacking around the absence of this, and there seem to be several interfaces that might be lifted and/or devirtualized using this. This change was based on a discussion with Jim Grosbach about how best to handle testing for specific MCStreamer subclasses. He said that this was the correct end state, and everything else was too hacky so I decided to just make it so. No functionality should be changed here, this is just threading the kind through all the constructors and setting up the classof overloads. llvm-svn: 174113
-
Bill Wendling authored
The AttrBuilder is for building a collection of attributes. The Attribute object holds only one attribute. So it's not really useful for the Attribute object to have a creator which takes an AttrBuilder. This has two fallouts: 1. The AttrBuilder no longer holds its internal attributes in a bit-mask form. 2. The attributes are now ordered alphabetically (hence why the tests have changed). llvm-svn: 174110
-
Richard Smith authored
llvm-svn: 174108
-
- Jan 31, 2013
-
-
NAKAMURA Takumi authored
llvm-svn: 174106
-
Richard Smith authored
catches uses of an extremely minor and widely-available C++ extension (which every C++ compiler I could find supports, but EDG and Clang reject in strict mode). The diagnosed code pattern looks like this: struct X { union { struct { int a; int b; } S; }; }; llvm-svn: 174103
-
Daniel Dunbar authored
llvm-svn: 174102
-
Daniel Dunbar authored
llvm-svn: 174101
-
Dan Gohman authored
llvm-svn: 174100
-
Tom Stellard authored
Patch by: Vincent Lejeune Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 174099
-
Tom Stellard authored
Patch by: Vincent Lejeune Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 174098
-
Tom Stellard authored
Patch by: Vincent Lejeune Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> llvm-svn: 174097
-
Chad Rosier authored
llvm-svn: 174094
-
Manman Ren authored
This is a re-worked version of r174048. Given source IR: call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !14), !dbg !15 we used to generate call void @llvm.dbg.declare(metadata !27, metadata !28), !dbg !29 !27 = metadata !{null} With this patch, we will correctly generate call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !27), !dbg !28 Looking up %argc.addr in ValueMap will return null, since %argc.addr is already correctly set up, we can use identity mapping. rdar://problem/13089880 llvm-svn: 174093
-
Bill Wendling authored
Attributes that are strings are typically target-dependent attributes. They are of this form in the IR: "attr" "attr" = "val" llvm-svn: 174090
-