Home
last modified time | relevance | path

Searched refs:llvm_module (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_compiler.cc456 const llvm::Module& llvm_module) { in GetIRModuleHooks() argument
460 user_hook(llvm_module); in GetIRModuleHooks()
462 llvm_ir::DumpIrIfEnabled(*hlo_module_ptr, llvm_module, optimized); in GetIRModuleHooks()
464 return {[hook](const llvm::Module& llvm_module) { in GetIRModuleHooks()
465 return hook(/*optimized=*/false, llvm_module); in GetIRModuleHooks()
467 [hook](const llvm::Module& llvm_module) { in GetIRModuleHooks()
468 return hook(/*optimized=*/true, llvm_module); in GetIRModuleHooks()
472 Status VerifyLlvmModule(const llvm::Module& llvm_module) { in VerifyLlvmModule() argument
479 TF_RET_CHECK(!llvm::verifyModule(llvm_module, &err_stream)) in VerifyLlvmModule()
603 auto llvm_module = in RunBackend() local
[all …]
Dir_function.cc30 llvm::Module* llvm_module, const int64 num_dynamic_loop_bounds) { in GetComputeFunctionParams() argument
31 llvm::Type* i8_ptr_type = llvm::Type::getInt8PtrTy(llvm_module->getContext()); in GetComputeFunctionParams()
34 llvm::Type::getInt64PtrTy(llvm_module->getContext()); in GetComputeFunctionParams()
47 llvm::Module* llvm_module, llvm::IRBuilder<>* b, in IrFunction() argument
50 llvm_module_(llvm_module), in IrFunction()
Dir_function.h56 const HloModuleConfig& module_config, llvm::Module* llvm_module,
Dir_emitter.h77 llvm::Module* llvm_module,
Dir_emitter.cc85 llvm::Module* llvm_module, in IrEmitter() argument
91 module_(llvm_module), in IrEmitter()
92 arch_type_(llvm::Triple(llvm_module->getTargetTriple()).getArch()), in IrEmitter()
93 b_(llvm_module->getContext()), in IrEmitter()
96 alias_analysis_(hlo_module, assignment, &llvm_module->getContext()), in IrEmitter()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter_context.h36 llvm::Module* llvm_module) in IrEmitterContext() argument
40 llvm_module_(llvm_module) {} in IrEmitterContext()
53 llvm::Module* llvm_module() { return llvm_module_; } in llvm_module() function
Dnvptx_compiler.cc651 llvm::Module llvm_module(module->name().c_str(), llvm_context); in RunBackend() local
653 llvm_module.setTargetTriple(kTargetTriple); in RunBackend()
654 llvm_module.setDataLayout(kDataLayout); in RunBackend()
683 &llvm_module); in RunBackend()
697 user_pre_optimization_hook_(llvm_module); in RunBackend()
703 ir_module_string_before_opt = llvm_ir::DumpModuleToString(llvm_module); in RunBackend()
706 llvm_ir::DumpIrIfEnabled(*module, llvm_module, /*optimized=*/false); in RunBackend()
716 TF_RET_CHECK(!llvm::verifyModule(llvm_module, &err_stream)) in RunBackend()
749 TF_ASSIGN_OR_RETURN(ptx, CompileToPtx(&llvm_module, {cc_major, cc_minor}, in RunBackend()
753 llvm_ir::DumpIrIfEnabled(*module, llvm_module, /*optimized=*/true); in RunBackend()
[all …]
Dhlo_to_ir_bindings.h40 llvm::IRBuilder<>* b, llvm::Module* llvm_module, in HloToIrBindings() argument
45 module_(llvm_module), in HloToIrBindings()
Dir_emitter_nested.cc69 root_shape, ir_emitter_context_->llvm_module()->getDataLayout()); in EmitBasePointersForNestedComputation()
83 ir_emitter_context_->llvm_module()); // The parent LLVM module. in EmitBasePointersForNestedComputation()
Dir_emitter_unnested.cc148 llvm::Module* llvm_module) { in UpdateLaunchDimensions() argument
156 llvm_module->getOrInsertNamedMetadata("nvvm.annotations"); in UpdateLaunchDimensions()
158 llvm_module->getFunction(kernel_thunk->kernel_name().c_str()); in UpdateLaunchDimensions()
159 llvm::LLVMContext& llvm_context = llvm_module->getContext(); in UpdateLaunchDimensions()
197 llvm::Module* module = ir_emitter_context_->llvm_module(); in BuildKernelPrototype()
590 hlo_module_config_, ir_emitter_context_->llvm_module(), &b_, in HandleFusion()
611 hlo_module_config_, ir_emitter_context_->llvm_module(), &b_, in HandleFusion()
654 ir_emitter_context_->llvm_module(), in HandleFusion()
667 ir_emitter_context_->llvm_module()); in HandleFusion()
840 ir_emitter_context_->llvm_module()), in HandleSelectAndScatter()
[all …]
Dir_emitter.cc60 module_(ir_emitter_context->llvm_module()), in IrEmitter()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dllvm_util.cc586 const llvm::Module& llvm_module, bool optimized) { in DumpIrIfEnabled() argument
596 DumpModuleToString(llvm_module)); in DumpIrIfEnabled()
604 DumpModuleToString(*DropConstantInitializers(llvm_module))); in DumpIrIfEnabled()
Dllvm_util.h283 const llvm::Module& llvm_module, bool optimized);
/external/mesa3d/src/amd/common/
Dac_nir_to_llvm.c7031 LLVMModuleRef llvm_module, in ac_compile_llvm_module() argument
7039 ac_dump_module(llvm_module); in ac_compile_llvm_module()
7042 int v = ac_llvm_compile(llvm_module, binary, tm); in ac_compile_llvm_module()
7052 LLVMContextRef ctx = LLVMGetModuleContext(llvm_module); in ac_compile_llvm_module()
7053 LLVMDisposeModule(llvm_module); in ac_compile_llvm_module()
7161 LLVMModuleRef llvm_module = ac_translate_nir_to_llvm(tm, nir, nir_count, shader_info, in ac_compile_nir_shader() local
7164 …ac_compile_llvm_module(tm, llvm_module, binary, config, shader_info, nir[0]->info.stage, dump_shad… in ac_compile_nir_shader()