* ``PIPE_COMPUTE_CAP_IR_TARGET``: A description of the target of the form
``processor-arch-manufacturer-os`` that will be passed on to the compiler.
- This CAP is only relevant for drivers that specify PIPE_SHADER_IR_LLVM
- or PIPE_SHADER_IR_NATIVE for their preferred IR.
+ This CAP is only relevant for drivers that specify PIPE_SHADER_IR_NATIVE for
+ their preferred IR.
Value type: null-terminated string. Shader IR type dependent.
* ``PIPE_COMPUTE_CAP_GRID_DIMENSION``: Number of supported dimensions
for grid and block coordinates. Value type: ``uint64_t``. Shader IR type dependent.
enum pipe_shader_ir
{
PIPE_SHADER_IR_TGSI = 0,
- PIPE_SHADER_IR_LLVM,
PIPE_SHADER_IR_NATIVE,
PIPE_SHADER_IR_NIR,
};
struct pipe_grid_info
{
/**
- * For drivers that use PIPE_SHADER_IR_LLVM as their prefered IR, this value
- * will be the index of the kernel in the opencl.kernels metadata list.
+ * For drivers that use PIPE_SHADER_IR_NATIVE as their prefered IR, this
+ * value will be the index of the kernel in the opencl.kernels metadata
+ * list.
*/
uint32_t pc;
namespace clover {
namespace llvm {
- module
- build_module_bitcode(const ::llvm::Module &mod,
- const clang::CompilerInstance &c);
-
std::string
print_module_bitcode(const ::llvm::Module &mod);
}
}
-module
-clover::llvm::build_module_bitcode(const ::llvm::Module &mod,
- const clang::CompilerInstance &c) {
- return build_module_common(mod, emit_code(mod), get_symbol_offsets(mod), c);
-}
-
std::string
clover::llvm::print_module_bitcode(const ::llvm::Module &mod) {
std::string s;
if (create_library) {
return build_module_library(*mod, module::section::text_library);
- } else if (ir == PIPE_SHADER_IR_LLVM) {
- return build_module_bitcode(*mod, *c);
-
} else if (ir == PIPE_SHADER_IR_NATIVE) {
if (has_flag(debug::native))
debug::log(id + ".asm", print_module_native(*mod, target));
case PIPE_SHADER_IR_NIR:
/* pipe driver took ownership of prog */
break;
- case PIPE_SHADER_IR_LLVM:
case PIPE_SHADER_IR_NATIVE:
/* ??? */
stcp->tgsi.prog = NULL;