From d0e4e09a5dcb8641267befa9ca054b5ebd6bf4d1 Mon Sep 17 00:00:00 2001 From: "mdevan.foobar" Date: Sun, 20 Sep 2009 09:19:12 +0000 Subject: [PATCH] More parameter attributes (Andrew Straw) git-svn-id: http://llvm-py.googlecode.com/svn/trunk@78 8d1e9007-1d4e-0410-b67e-1979fd6579aa --- llvm/core.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/llvm/core.py b/llvm/core.py index 3f46c08..5068552 100644 --- a/llvm/core.py +++ b/llvm/core.py @@ -218,7 +218,7 @@ VISIBILITY_DEFAULT = 0 VISIBILITY_HIDDEN = 1 VISIBILITY_PROTECTED = 2 -# parameter attributes +# parameter attributes (see llvm/Attributes.h) ATTR_ZEXT = 1 ATTR_SEXT = 2 ATTR_NO_RETURN = 4 @@ -230,6 +230,13 @@ ATTR_BY_VAL = 128 ATTR_NEST = 256 ATTR_READ_NONE = 512 ATTR_READONLY = 1024 +ATTR_NO_INLINE = 1<<11 +ATTR_ALWAYS_INLINE = 1<<12 +ATTR_OPTIMIZE_FOR_SIZE = 1<<13 +ATTR_STACK_PROTECT = 1<<14 +ATTR_STACK_PROTECT_REQ = 1<<15 +ATTR_ALIGNMENT = 31<<16 +ATTR_NO_CAPTURE = 1<<21 # intrinsic IDs from llvm._intrinsic_ids import *