diff options
| author | Patrick Walton <[email protected]> | 2011-04-29 16:58:14 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-04-29 16:58:49 -0700 |
| commit | 64a5afadf320de5a3f49160bb97f62a06311ba3a (patch) | |
| tree | acc7e8b9c7116db71e81025b3d7bcded0c7c2411 /src/comp/lib | |
| parent | Re-XFAIL lib-io.rs, not quite working yet. (diff) | |
| download | rust-64a5afadf320de5a3f49160bb97f62a06311ba3a.tar.xz rust-64a5afadf320de5a3f49160bb97f62a06311ba3a.zip | |
rustc: Add constants for LLVM function attributes
Diffstat (limited to 'src/comp/lib')
| -rw-r--r-- | src/comp/lib/llvm.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 93284e5a..41ec1836 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -65,6 +65,30 @@ const uint LLVMCommonLinkage = 13u; const uint LLVMLinkerPrivateLinkage = 14u; const uint LLVMLinkerPrivateWeakLinkage = 15u; +const uint LLVMZExtAttribute = 1u; +const uint LLVMSExtAttribute = 2u; +const uint LLVMNoReturnAttribute = 4u; +const uint LLVMInRegAttribute = 8u; +const uint LLVMStructRetAttribute = 16u; +const uint LLVMNoUnwindAttribute = 32u; +const uint LLVMNoAliasAttribute = 64u; +const uint LLVMByValAttribute = 128u; +const uint LLVMNestAttribute = 256u; +const uint LLVMReadNoneAttribute = 512u; +const uint LLVMReadOnlyAttribute = 1024u; +const uint LLVMNoInlineAttribute = 2048u; +const uint LLVMAlwaysInlineAttribute = 4096u; +const uint LLVMOptimizeForSizeAttribute = 8192u; +const uint LLVMStackProtectAttribute = 16384u; +const uint LLVMStackProtectReqAttribute = 32768u; +const uint LLVMAlignmentAttribute = 2031616u; // 31 << 16 +const uint LLVMNoCaptureAttribute = 2097152u; +const uint LLVMNoRedZoneAttribute = 4194304u; +const uint LLVMNoImplicitFloatAttribute = 8388608u; +const uint LLVMNakedAttribute = 16777216u; +const uint LLVMInlineHintAttribute = 33554432u; +const uint LLVMStackAttribute = 469762048u; // 7 << 26 + // Consts for the LLVM IntPredicate type, pre-cast to uint. // FIXME: as above. |