summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Attributes.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge System into Support.Michael J. Spencer2010-11-291-2/+2
| | | | llvm-svn: 120298
* Fix an order-of-deallocation issue where the AttrListImpl could be ↵Owen Anderson2010-11-181-2/+7
| | | | | | | | deallocated before the global LLVMContext, causing memory errors. Patch by Peter Collingbourne. llvm-svn: 119721
* Last try to get this reference counting right, I swear.Owen Anderson2010-11-091-1/+1
| | | | llvm-svn: 118589
* Really fix the leak in the attributes list. Thanks to Benjamin Kramer for ↵Owen Anderson2010-11-091-2/+2
| | | | | | pointing out how I was being stupid. llvm-svn: 118588
* Fix leak in my recent fix for PR8442.Owen Anderson2010-11-091-1/+1
| | | | llvm-svn: 118490
* Fix PR8441, a race condition in the static attributes list. While the ↵Owen Anderson2010-11-091-5/+12
| | | | | | | | reference counting was itself threadsafe, the implicit removal of each object from the global list was not. Make this operation atomic. llvm-svn: 118461
* Add a new 'hotpatch' attribute. This attribute will insert a two-byte no-opCharles Davis2010-10-251-0/+2
| | | | | | | instruction at the beginning of each function that has the attribute, allowing the function to be easily hooked and/or patched. llvm-svn: 117264
* Fix a threaded LLVM bug due the need for operator= on reference counted ↵Owen Anderson2010-09-161-0/+1
| | | | | | | | | AttrListImpl's. It might be possible to implement this very carefully to allow a lock-free implementation while still avoiding illegal interleavings, but I haven't been able to figure one out. llvm-svn: 114046
* There are two ways of checking for a given type, for example isa<PointerType>(T)Duncan Sands2010-02-161-1/+1
| | | | | | | and T->isPointerTy(). Convert most instances of the first form to the second form. Requested by Chris. llvm-svn: 96344
* Uniformize the names of type predicates: rather than having isFloatTy andDuncan Sands2010-02-151-1/+1
| | | | | | isInteger, we now have isFloatTy and isIntegerTy. Requested by Chris! llvm-svn: 96223
* Add a new function attribute, 'alignstack'. It will indicate (when the backendsCharles Davis2010-02-121-0/+5
| | | | | | | implement support for it) that the stack should be forcibly realigned in the prologue (and the process reversed in the epilogue). llvm-svn: 95945
* Reintroduce the InlineHint function attribute.Jakob Stoklund Olesen2010-02-061-0/+2
| | | | | | | | | | | | This time it's for real! I am going to hook this up in the frontends as well. The inliner has some experimental heuristics for dealing with the inline hint. When given a -respect-inlinehint option, functions marked with the inline keyword are given a threshold just above the default for -O3. We need some experiments to determine if that is the right thing to do. llvm-svn: 95466
* Remove the InlineHint attribute. There are no current or plannedEric Christopher2010-01-151-2/+0
| | | | | | users. llvm-svn: 93558
* Change errs() to dbgs().David Greene2010-01-051-3/+4
| | | | llvm-svn: 92658
* Add an 'inline hint' attribute to represent sourceDale Johannesen2009-08-261-0/+2
| | | | | | | | code hints that it would be a good idea to inline a function ("inline" keyword). No functional change yet; FEs do not emit this and inliner does not use it. llvm-svn: 80063
* Kill off more cerr/cout uses and prune includes a bit.Benjamin Kramer2009-08-231-4/+4
| | | | llvm-svn: 79852
* Reduce contention on the Attributes lock by using atomic operations for ↵Owen Anderson2009-08-201-7/+7
| | | | | | reference counting rather than locking. llvm-svn: 79560
* AttrListPtr operations need to be atomic.Owen Anderson2009-08-191-0/+4
| | | | llvm-svn: 79486
* Add locking around the attributes list.Owen Anderson2009-08-171-0/+6
| | | | llvm-svn: 79255
* Add support for naked functionsAnton Korobeynikov2009-07-171-1/+3
| | | | llvm-svn: 76198
* Add new function attribute - noimplicitfloatDevang Patel2009-06-051-0/+2
| | | | | | | Update code generator to use this attribute and remove NoImplicitFloat target option. Update llc to set this attribute when -no-implicit-float command line option is used. llvm-svn: 72959
* Add new function attribute - noredzone. Devang Patel2009-06-041-0/+2
| | | | | | | Update code generator to use this attribute and remove DisableRedZone target option. Update llc to set this attribute when -disable-red-zone command line option is used. llvm-svn: 72894
* Use v.data() instead of &v[0] when SmallVector v might be empty.Jay Foad2009-05-211-3/+3
| | | | llvm-svn: 72210
* Use the spiffy new getAlignmentFromAttrs function.Nick Lewycky2009-01-111-1/+1
| | | | llvm-svn: 62039
* Commit missed files from nocapture change.Nick Lewycky2008-12-191-2/+5
| | | | llvm-svn: 61240
* Temporarily revert r61019, r61030, and r61040. These were breaking LLVM ReleaseBill Wendling2008-12-161-5/+2
| | | | | | builds. llvm-svn: 61094
* It turns out that "align 1" and unaligned are different. Add a bias to theNick Lewycky2008-12-151-1/+1
| | | | | | | | | | alignment attribute such that 0 means unaligned. This will probably require a rebuild of llvm-gcc because of the change to Attributes.h. If you see many test failures on "make check", please rebuild your llvm-gcc. llvm-svn: 61030
* Introducing nocapture, a parameter attribute for pointers to indicate that theNick Lewycky2008-12-151-2/+5
| | | | | | | | | | | | | | | | | | | | | | | callee will not introduce any new aliases of that pointer. The attributes had all bits allocated already, so I decided to collapse alignment. Alignment was previously stored as a 16-bit integer from bits 16 to 32 of the attribute, but it was required to be a power of 2. Now it's stored in log2 encoded form in five bits from 16 to 21. That gives us 11 more bits of space. You may have already noticed that you only need four bits to encode a 16-bit power of two, so why five bits? Because the AsmParser accepted 32-bit alignments, even though we couldn't store them (they were silently discarded). Now we can store them in memory, but not in the bitcode. The bitcode format was already storing these as 64-bit VBR integers. So, the bitcode format stays the same, keeping the alignment values stored as 16 bit raw values. There's some hideous code in the reader and writer that deals with this, waiting to be ripped out the moment we run out of bits again and have to replace the parameter attributes table encoding. llvm-svn: 61019
* Implement stack protectors as function attributes: "ssp" and "sspreq".Bill Wendling2008-11-131-0/+4
| | | | llvm-svn: 59202
* Now Attributes are divided in three groupsDevang Patel2008-09-261-0/+6
| | | | | | | | | | | | | - return attributes - inreg, zext and sext - parameter attributes - function attributes - nounwind, readonly, readnone, noreturn Return attributes use 0 as the index. Function attributes use ~0U as the index. This patch requires corresponding changes in llvm-gcc and clang. llvm-svn: 56704
* Large mechanical patch.Devang Patel2008-09-251-79/+79
| | | | | | | | | | | | | | | s/ParamAttr/Attribute/g s/PAList/AttrList/g s/FnAttributeWithIndex/AttributeWithIndex/g s/FnAttr/Attribute/g This sets the stage - to implement function notes as function attributes and - to distinguish between function attributes and return value attributes. This requires corresponding changes in llvm-gcc and clang. llvm-svn: 56622
* s/ParamAttrsWithIndex/FnAttributeWithIndex/gDevang Patel2008-09-241-16/+16
| | | | llvm-svn: 56535
* s/ParamAttributeListImpl/AttributeListImpl/gDevang Patel2008-09-241-12/+12
| | | | llvm-svn: 56532
* 80 colsDevang Patel2008-09-231-1/+1
| | | | llvm-svn: 56521
* s/ParameterAttributes/Attributes/gDevang Patel2008-09-231-0/+297
llvm-svn: 56513
OpenPOWER on IntegriCloud