Lines Matching defs:Module
28 #include <llvm/IR/Module.h>
52 virtual bool runOnModule(llvm::Module &Module) {
54 bcinfo::MetadataExtractor me(&Module);
64 llvm::DIBuilder DebugInfo(Module);
66 initializeDebugInfo(DebugInfo, Module);
73 if (llvm::Function *kernelFunc = Module.getFunction(expandedName))
79 cleanupDebugInfo(Module);
93 const llvm::Module &Module) {
94 llvm::LLVMContext &ctx = Module.getContext();
107 Module.getNamedMetadata(DEBUG_COMPILE_UNIT_MDNAME);
237 void cleanupDebugInfo(llvm::Module& Module) {
244 Module.getNamedMetadata(DEBUG_COMPILE_UNIT_MDNAME);
249 debugMD = Module.getOrInsertNamedMetadata(DEBUG_COMPILE_UNIT_MDNAME);