diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2007-07-06 10:57:03 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2007-07-06 10:57:03 +0000 |
commit | 1aa7efbd2c98e761f50992197473304b99257ca9 (patch) | |
tree | ef01e24db9a8f28dc6da9d24dbd936e1bff0194f /include | |
parent | aa6b7fd5ec21855bc712de4c73b60b9580406227 (diff) | |
download | external_llvm-1aa7efbd2c98e761f50992197473304b99257ca9.zip external_llvm-1aa7efbd2c98e761f50992197473304b99257ca9.tar.gz external_llvm-1aa7efbd2c98e761f50992197473304b99257ca9.tar.bz2 |
Add the byval attribute
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 2 | ||||
-rw-r--r-- | include/llvm/ParameterAttributes.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index d22ffca..a85ec03 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -63,6 +63,8 @@ namespace ISD { InRegOffs = 2, StructReturn = 1<<3, ///< Hidden struct-return pointer StructReturnOffs = 3, + ByVal = 1<<4, ///< Struct passed by value + ByValOffs = 4, OrigAlignment = 0x1F<<27, OrigAlignmentOffs = 27 }; diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h index c2d6078..b1cb966 100644 --- a/include/llvm/ParameterAttributes.h +++ b/include/llvm/ParameterAttributes.h @@ -36,7 +36,8 @@ enum Attributes { InReg = 1 << 3, ///< force argument to be passed in register StructRet = 1 << 4, ///< hidden pointer to structure to return NoUnwind = 1 << 5, ///< Function doesn't unwind stack - NoAlias = 1 << 6 ///< Considered to not alias after call. + NoAlias = 1 << 6, ///< Considered to not alias after call. + ByVal = 1 << 7 ///< Pass structure by value }; } |