summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2019-10-09 14:52:09 -0700
committerMatt Turner <[email protected]>2019-10-09 14:54:07 -0700
commitb2f6fda542d2eb868409fbd03564b63ae2c666bb (patch)
treef6becf8d6f42f6736f8d3b25d88a8334141f2e21 /src/gallium/state_trackers
parent6da865bcfeecaa9ab4bb1632416d813f7df24f3e (diff)
clover: Remove unused code
Fixes: 96b592696f1 ("gallium: Require LLVM >= 3.9") Bug: https://bugs.gentoo.org/685678
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/clover/llvm/metadata.hpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/metadata.hpp b/src/gallium/state_trackers/clover/llvm/metadata.hpp
index b2f3e5d95b2..5e8e720843d 100644
--- a/src/gallium/state_trackers/clover/llvm/metadata.hpp
+++ b/src/gallium/state_trackers/clover/llvm/metadata.hpp
@@ -39,23 +39,6 @@
namespace clover {
namespace llvm {
namespace detail {
- inline iterator_range< ::llvm::NamedMDNode::const_op_iterator>
- get_kernel_nodes(const ::llvm::Module &mod) {
- if (const ::llvm::NamedMDNode *n =
- mod.getNamedMetadata("opencl.kernels"))
- return range(n->op_begin(), n->op_end());
- else
- return {};
- }
-
- inline std::function<bool (const ::llvm::MDNode *n)>
- is_kernel_node_for(const ::llvm::Function &f) {
- return [&](const ::llvm::MDNode *n) {
- using ::llvm::mdconst::dyn_extract;
- return &f == dyn_extract< ::llvm::Function>(n->getOperand(0));
- };
- }
-
inline bool
is_kernel(const ::llvm::Function &f) {
return f.getMetadata("kernel_arg_type");