summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_llvm_util.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-06-05 01:20:10 +0100
committerDave Airlie <[email protected]>2017-06-05 01:37:29 +0100
commit68c812f6993504ae5b5fe5ea47b86132c98c8fa1 (patch)
treeddd133b8d8359ccd1eeec5ea715e14ce645e40a4 /src/amd/common/ac_llvm_util.h
parent4ba2e6cbfab2ac5adc3d4fe1d35a32cc582781dc (diff)
ac: add new helper function to add a integer target dependent function attr.
This is needed to add the max workgroup size attribute. Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_util.h')
-rw-r--r--src/amd/common/ac_llvm_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/common/ac_llvm_util.h b/src/amd/common/ac_llvm_util.h
index 38e7dde5b63..4ce59ec8701 100644
--- a/src/amd/common/ac_llvm_util.h
+++ b/src/amd/common/ac_llvm_util.h
@@ -66,6 +66,11 @@ void ac_dump_module(LLVMModuleRef module);
LLVMValueRef ac_llvm_get_called_value(LLVMValueRef call);
bool ac_llvm_is_function(LLVMValueRef v);
+
+void
+ac_llvm_add_target_dep_function_attr(LLVMValueRef F,
+ const char *name, int value);
+
#ifdef __cplusplus
}
#endif