Expose alignment and stack alignment attributes to llvm-c and ocaml.
authorErick Tryzelaar <idadesub@users.sourceforge.net>
Wed, 3 Mar 2010 23:51:25 +0000 (23:51 +0000)
committerErick Tryzelaar <idadesub@users.sourceforge.net>
Wed, 3 Mar 2010 23:51:25 +0000 (23:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97682 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/ocaml/llvm/llvm.ml
bindings/ocaml/llvm/llvm.mli
include/llvm-c/Core.h

index 407c1fc6c63f8f237eb217e01f2d1db5a2ef5bbd..e801c494713ab237ec05c9040c5bae3c00a9e581 100644 (file)
@@ -90,11 +90,13 @@ module Attribute = struct
   | Optsize
   | Ssp
   | Sspreq
+  | Alignment
   | Nocapture
   | Noredzone
   | Noimplicitfloat
   | Naked
   | Inlinehint
+  | Stackalignment
 end
 
 module Icmp = struct
index aa5ea760c46debc8835f90ad8a6a1c75cd4a5f72..4b0c06da03e4b12e3571fc96eb0a9f75b81b0535 100644 (file)
@@ -139,11 +139,13 @@ module Attribute : sig
   | Optsize
   | Ssp
   | Sspreq
+  | Alignment
   | Nocapture
   | Noredzone
   | Noimplicitfloat
   | Naked
   | Inlinehint
+  | Stackalignment
 end
 
 (** The predicate for an integer comparison ([icmp]) instruction.
index 457436d121991b4cffc6be2675b5f56cb3328c1d..733b92c57c8d360cdd8274b4c64c4907600f2832 100644 (file)
@@ -112,11 +112,13 @@ typedef enum {
     LLVMOptimizeForSizeAttribute = 1<<13,
     LLVMStackProtectAttribute    = 1<<14,
     LLVMStackProtectReqAttribute = 1<<15,
+    LLVMAlignment = 31<<16,
     LLVMNoCaptureAttribute  = 1<<21,
     LLVMNoRedZoneAttribute  = 1<<22,
     LLVMNoImplicitFloatAttribute = 1<<23,
     LLVMNakedAttribute      = 1<<24,
-    LLVMInlineHintAttribute = 1<<25
+    LLVMInlineHintAttribute = 1<<25,
+    LLVMStackAlignment = 7<<26
 } LLVMAttribute;
 
 typedef enum {