Lines Matching defs:module
41 Operation &module, StringRef triple, StringRef chip, StringRef features,
46 : module(module), triple(triple), chip(chip), features(features),
54 Operation &ModuleToObject::getOperation() { return module; }
152 ModuleToObject::linkFiles(llvm::Module &module,
156 llvm::Linker linker(module);
158 // This bitcode linking imports the library functions into the module,
160 // optimize across the libraries and the module's code. We also only import
161 // symbols if they are referenced by the module or a previous library since
181 LogicalResult ModuleToObject::optimizeModule(llvm::Module &module,
198 auto error = transformer(&module);
229 void ModuleToObject::setDataLayoutAndTriple(llvm::Module &module) {
234 // Set the data layout and target triple of the module.
235 module.setDataLayout((*targetMachine)->createDataLayout());
236 module.setTargetTriple((*targetMachine)->getTargetTriple().getTriple());
243 // Write the LLVM module bitcode to a buffer.
250 // Translate the module to LLVM IR.
277 // Optimize the module.