Module: Mesa
Branch: main
Commit: fc0e6fdcce118feb65406ec245599feda5a70077
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc0e6fdcce118feb65406ec245599feda5a70077

Author: Marek Olšák <[email protected]>
Date:   Fri Apr 22 14:04:32 2022 -0400

ac/llvm: remove unused LLVM helpers

Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16112>

---

 src/amd/llvm/ac_llvm_helper.cpp | 10 ----------
 src/amd/llvm/ac_llvm_util.h     |  4 ----
 2 files changed, 14 deletions(-)

diff --git a/src/amd/llvm/ac_llvm_helper.cpp b/src/amd/llvm/ac_llvm_helper.cpp
index 98d9ac0f9c3..0e2e207c3a4 100644
--- a/src/amd/llvm/ac_llvm_helper.cpp
+++ b/src/amd/llvm/ac_llvm_helper.cpp
@@ -63,16 +63,6 @@ bool ac_is_sgpr_param(LLVMValueRef arg)
    return AS.hasParamAttr(ArgNo, llvm::Attribute::InReg);
 }
 
-LLVMValueRef ac_llvm_get_called_value(LLVMValueRef call)
-{
-   return LLVMGetCalledValue(call);
-}
-
-bool ac_llvm_is_function(LLVMValueRef v)
-{
-   return LLVMGetValueKind(v) == LLVMFunctionValueKind;
-}
-
 LLVMModuleRef ac_create_module(LLVMTargetMachineRef tm, LLVMContextRef ctx)
 {
    llvm::TargetMachine *TM = reinterpret_cast<llvm::TargetMachine *>(tm);
diff --git a/src/amd/llvm/ac_llvm_util.h b/src/amd/llvm/ac_llvm_util.h
index 8eba8455d6a..a568c1fc70b 100644
--- a/src/amd/llvm/ac_llvm_util.h
+++ b/src/amd/llvm/ac_llvm_util.h
@@ -97,11 +97,7 @@ void ac_add_function_attr(LLVMContextRef ctx, LLVMValueRef 
function, int attr_id
                           enum ac_func_attr attr);
 void ac_add_func_attributes(LLVMContextRef ctx, LLVMValueRef function, 
unsigned attrib_mask);
 void ac_dump_module(LLVMModuleRef module);
-
-LLVMValueRef ac_llvm_get_called_value(LLVMValueRef call);
-bool ac_llvm_is_function(LLVMValueRef v);
 LLVMModuleRef ac_create_module(LLVMTargetMachineRef tm, LLVMContextRef ctx);
-
 LLVMBuilderRef ac_create_builder(LLVMContextRef ctx, enum ac_float_mode 
float_mode);
 void ac_enable_signed_zeros(struct ac_llvm_context *ctx);
 void ac_disable_signed_zeros(struct ac_llvm_context *ctx);

Reply via email to