mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
clover: Remove unused code
Fixes: 96b592696f ("gallium: Require LLVM >= 3.9")
Bug: https://bugs.gentoo.org/685678
This commit is contained in:
parent
6da865bcfe
commit
b2f6fda542
1 changed files with 0 additions and 17 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue