- Feb 06, 2013
-
-
Craig Topper authored
llvm-svn: 174492
-
Craig Topper authored
llvm-svn: 174491
-
Bill Wendling authored
Fix the 'operator==' and 'hasAttributes' queries to take into account target-dependent attributes. llvm-svn: 174481
-
Bill Wendling authored
This is useful when parsing an object that references multiple attribute groups. N.B. If both builders have alignments specified, then they should match! llvm-svn: 174480
-
Bill Wendling authored
llvm-svn: 174467
-
- Feb 05, 2013
-
-
Bill Wendling authored
The stuff we're handing are all enums (Attribute::AttrKind), integers and strings. Don't convert them to Constants, which is an unnecessary step here. The rest of the changes are mostly mechanical. llvm-svn: 174456
-
Bill Wendling authored
llvm-svn: 174356
-
Michael Gottesman authored
llvm-svn: 174340
-
Bill Wendling authored
Rename the PARAMATTR_CODE_ENTRY to PARAMATTR_CODE_ENTRY_OLD. It will be replaced by another encoding. Keep around the current LLVM attribute encoder/decoder code, but move it to the bitcode directories so that no one's tempted to use them. llvm-svn: 174335
-
- Feb 04, 2013
-
-
David Blaikie authored
llvm-svn: 174305
-
David Blaikie authored
llvm-svn: 174304
-
- Feb 03, 2013
-
-
Michael Gottesman authored
Added instance variable/initializers/getter/setters for new keyword externally initialized to GlobalVariable. No *TRUE* functionality change. I am going to add in the actual test cases with the actual functionality changes in a later patch because I want to include some test cases. To be clear when I say no *TRUE* functionality change I mean that this patch (like it says in the title) only contains getters/setters and sets up a default initial value of the instance variable to false so that this patch does not affect any other uses of Global Variable.h. llvm-svn: 174295
-
- Feb 02, 2013
-
-
David Blaikie authored
The main lists of debug info metadata attached to the compile_unit had an extra layer of metadata nodes they went through for no apparent reason. This patch removes that (& still passes just as much of the GDB 7.5 test suite). If anyone can show evidence as to why these extra metadata nodes are there I'm open to reverting this patch & documenting why they're there. llvm-svn: 174266
-
Bill Wendling authored
llvm-svn: 174251
-
Bill Wendling authored
Use the AttributeSet's iterators in AttrBuilder::hasAttributes() when determining of the intersection of the AttrBuilder and AttributeSet is non-null. llvm-svn: 174250
-
- Feb 01, 2013
-
-
Bill Wendling authored
This Constant could be an aggregate to represent multiple values. llvm-svn: 174228
-
Bill Wendling authored
llvm-svn: 174132
-
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
-
Bill Wendling authored
llvm-svn: 174120
-
Bill Wendling authored
s/AttrBuilder::addAttributes/AttrBuilder::addAttribute/g because that's more descriptive of what it actually is. llvm-svn: 174116
-
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
-
- Jan 31, 2013
-
-
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
-
Bill Wendling authored
That function doesn't make sense anymore because there's only one attribute per Attribute object now. llvm-svn: 174044
-
NAKAMURA Takumi authored
It broke many hosts to crash. llvm-svn: 174035
-
Bill Wendling authored
The Attribute::hasAttributes() is kind of meaningless since an Attribute can have only one attribute. And we would rather people use the 'operator==' instead of Attribute::hasAttribute(). llvm-svn: 174026
-
Bill Wendling authored
llvm-svn: 174023
-
Bill Wendling authored
--- Reverse-merging r174010 into '.': U include/llvm/IR/Attributes.h U lib/IR/Verifier.cpp U lib/IR/Attributes.cpp llvm-svn: 174012
-
Bill Wendling authored
The AttrBuilder is there to build up multiple attributes. The Attribute class represents only one attribute at a time. So remove this unnecessary builder creator method. llvm-svn: 174010
-
Bill Wendling authored
Several places were still treating the Attribute object as respresenting multiple attributes. Those places now use the AttributeSet to represent multiple attributes. llvm-svn: 174003
-
Dan Gohman authored
for example, a one-past-the-end pointer from one global variable may be equal to the base pointer of another global variable. llvm-svn: 173995
-
Bill Wendling authored
llvm-svn: 173992
-
Bill Wendling authored
There are still places which treat the Attribute object as a collection of attributes. I'm systematically removing them. llvm-svn: 173990
-
- Jan 30, 2013
-
-
Bill Wendling authored
It was creating a new AttrBuilder when we could just fill in the AttrBuilder we're building. llvm-svn: 173975
-
Eli Bendersky authored
llvm-svn: 173960
-
Bill Wendling authored
Attempt to fix dragonegg. Use the number of slots to determine if the AttributeSet has attributes or not. llvm-svn: 173902
-
- Jan 29, 2013
-
-
Bill Wendling authored
llvm-svn: 173828
-
Bill Wendling authored
llvm-svn: 173827
-
NAKAMURA Takumi authored
Don't touch I->first on the end iterator, I == E! llvm-svn: 173804
-
Bill Wendling authored
The AttributeSetNode contains all of the attributes. This removes one (hopefully last) use of the Attribute class as a container of multiple attributes. llvm-svn: 173761
-