aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ParameterAttributes.h
Commit message (Collapse)AuthorAgeFilesLines
* Add a convenience method for modifying parameterDuncan Sands2007-11-301-5/+16
| | | | | | | | | attributes. While there, I noticed that not all attribute methods returned a pointer-to-constant, so I fixed that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44457 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1146: parameter attributes are longer part ofDuncan Sands2007-11-271-1/+8
| | | | | | | | | | | | | the function type, instead they belong to functions and function calls. This is an updated and slightly corrected version of Reid Spencer's original patch. The only known problem is that auto-upgrading of bitcode files doesn't seem to work properly (see test/Bitcode/AutoUpgradeIntrinsics.ll). Hopefully a bitcode guru (who might that be? :) ) will fix it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44359 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1816. If a bitcast of a function only exists because of aDuncan Sands2007-11-251-0/+33
| | | | | | | | | | trivial difference in function attributes, allow calls to it to be converted to direct calls. Based on a patch by Török Edwin. While there, move the various lists of mutually incompatible parameters etc out of the verifier and into ParameterAttributes.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44315 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename the 'const' parameter attribute to 'readnone',Duncan Sands2007-11-221-2/+2
| | | | | | | | and the 'pure' parameter attribute to 'readonly'. Names suggested by DannyB. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44273 91177308-0d34-0410-b5e6-96231b3b80d8
* Add pure/const attributes. Documentation will follow.Anton Korobeynikov2007-11-141-10/+12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44109 91177308-0d34-0410-b5e6-96231b3b80d8
* Support for trampolines, except for X86 codegen which isDuncan Sands2007-07-271-7/+8
| | | | | | | still under discussion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40549 91177308-0d34-0410-b5e6-96231b3b80d8
* Add the byval attributeRafael Espindola2007-07-061-1/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37940 91177308-0d34-0410-b5e6-96231b3b80d8
* add helperChris Lattner2007-06-181-0/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37631 91177308-0d34-0410-b5e6-96231b3b80d8
* Commit first round work of PR1373. "noalias" is now fully supported inZhou Sheng2007-06-051-1/+2
| | | | | | | | VMCore, BitCode, and Assembly. Documentation and test case paramattrs.ll updated also. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37432 91177308-0d34-0410-b5e6-96231b3b80d8
* add a helperChris Lattner2007-05-041-0/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36729 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1136:Reid Spencer2007-04-221-18/+50
| | | | | | | | Add reference counting to ParamAttrsList and make use of it in Function, CallInst and InvokeInst classes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36346 91177308-0d34-0410-b5e6-96231b3b80d8
* Undo premature commit.Reid Spencer2007-04-221-4/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36344 91177308-0d34-0410-b5e6-96231b3b80d8
* Terminate file with newline.Reid Spencer2007-04-221-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36343 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1146:Reid Spencer2007-04-221-46/+26
| | | | | | | | | Make ParamAttrsList objects unique. You can no longer directly create or destroy them but instead must go through the ParamAttrsList::get() interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36327 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1146:Reid Spencer2007-04-111-18/+49
| | | | | | | | Put the parameter attributes in their own ParamAttr name space. Adjust the rest of llvm as a result. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35877 91177308-0d34-0410-b5e6-96231b3b80d8
* Chris convinced me that the default size of the SmallVector (2) was tooReid Spencer2007-04-091-1/+1
| | | | | | | | | small. Since it doesn't cost much to have 2 more (8 bytes), but not having them would require a malloc as soon as the third one is needed. Setting the default to 4 delays the malloc until the 5th parameter attribute. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35793 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove redundancy.Reid Spencer2007-04-091-23/+11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35790 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typo.Reid Spencer2007-04-081-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35781 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement more feedback:Reid Spencer2007-04-081-24/+54
| | | | | | | | | | * Allow attributes to be added and removed singly or jointly so that in the future something like -pruneh can manipulate them more easily. * Move functions generally only useful for LLVM internals to the end of the accessors list instead of the beginning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35780 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement review feedback.Reid Spencer2007-04-081-5/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35777 91177308-0d34-0410-b5e6-96231b3b80d8
* For PR1146:Reid Spencer2007-04-081-0/+148
New header file to provide parameter attribute declarations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35767 91177308-0d34-0410-b5e6-96231b3b80d8