summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_util.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-02-24 02:11:07 +0100
committerMarek Olšák <[email protected]>2017-03-03 15:29:30 +0100
commitb5744310d4a282d4f58dbc62659c5f50416730d4 (patch)
tree8723055cb068a70913a96f7220272791a86c8a6c /src/amd/common/ac_llvm_util.h
parent455c79b24f91fbceaed57d49718fa198e2a6b0ff (diff)
gallivm, ac: add writeonly and inaccessiblememonly attributes
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.h')
-rw-r--r--src/amd/common/ac_llvm_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_util.h b/src/amd/common/ac_llvm_util.h
index 805db771785..e786bb73371 100644
--- a/src/amd/common/ac_llvm_util.h
+++ b/src/amd/common/ac_llvm_util.h
@@ -41,6 +41,8 @@ enum ac_func_attr {
AC_FUNC_ATTR_NOUNWIND = (1 << 4),
AC_FUNC_ATTR_READNONE = (1 << 5),
AC_FUNC_ATTR_READONLY = (1 << 6),
+ AC_FUNC_ATTR_WRITEONLY = HAVE_LLVM >= 0x0400 ? (1 << 7) : 0,
+ AC_FUNC_ATTR_INACCESSIBLE_MEM_ONLY = HAVE_LLVM >= 0x0400 ? (1 << 8) : 0,
/* Legacy intrinsic that needs attributes on function declarations
* and they must match the internal LLVM definition exactly, otherwise