summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2017-03-21 23:13:46 +0100
committerMarek Olšák <marek.olsak@amd.com>2017-03-22 17:54:40 +0100
commit6e2b9fd07171bf9b082c3b0cd218b35034d8ec15 (patch)
tree4636ad4b46312e7080ab00947745c443aa596b21 /src/gallium/auxiliary
parent7ab03ba7258d880560051d4f087b106ff8dce51d (diff)
gallivm: remove lp_add_attr_dereferenceable in favor of amd/common
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_misc.cpp11
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_misc.h3
2 files changed, 0 insertions, 14 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index 444686fdc79..2a388cbfaf2 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -747,17 +747,6 @@ lp_free_memory_manager(LLVMMCJITMemoryManagerRef memorymgr)
delete reinterpret_cast<BaseMemoryManager*>(memorymgr);
}
-extern "C" void
-lp_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes)
-{
-#if HAVE_LLVM >= 0x0306
- llvm::Argument *A = llvm::unwrap<llvm::Argument>(val);
- llvm::AttrBuilder B;
- B.addDereferenceableAttr(bytes);
- A->addAttr(llvm::AttributeSet::get(A->getContext(), A->getArgNo() + 1, B));
-#endif
-}
-
extern "C" LLVMValueRef
lp_get_called_value(LLVMValueRef call)
{
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.h b/src/gallium/auxiliary/gallivm/lp_bld_misc.h
index 6abb30d73fa..dafb4cfe068 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.h
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.h
@@ -73,9 +73,6 @@ lp_get_default_memory_manager();
extern void
lp_free_memory_manager(LLVMMCJITMemoryManagerRef memorymgr);
-extern void
-lp_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes);
-
extern LLVMValueRef
lp_get_called_value(LLVMValueRef call);