summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_util.c
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.c
parent455c79b24f91fbceaed57d49718fa198e2a6b0ff (diff)
gallivm, ac: add writeonly and inaccessiblememonly attributes
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.c')
-rw-r--r--src/amd/common/ac_llvm_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_util.c b/src/amd/common/ac_llvm_util.c
index 1936014525b..2598875ab70 100644
--- a/src/amd/common/ac_llvm_util.c
+++ b/src/amd/common/ac_llvm_util.c
@@ -172,6 +172,8 @@ static const char *attr_to_str(enum ac_func_attr attr)
case AC_FUNC_ATTR_NOUNWIND: return "nounwind";
case AC_FUNC_ATTR_READNONE: return "readnone";
case AC_FUNC_ATTR_READONLY: return "readonly";
+ case AC_FUNC_ATTR_WRITEONLY: return "writeonly";
+ case AC_FUNC_ATTR_INACCESSIBLE_MEM_ONLY: return "inaccessiblememonly";
default:
fprintf(stderr, "Unhandled function attribute: %x\n", attr);
return 0;