Lines Matching refs:module
66 return "Failed to materialize the module.";
236 llvm::Module &module = pScript.getSource().getModule();
243 const std::string &triple = module.getTargetTriple();
267 // Sanitize module's target information.
268 module.setTargetTriple(getTargetMachine().getTargetTriple().str());
269 module.setDataLayout(getTargetMachine().createDataLayout());
271 // Materialize the bitcode module.
272 if (module.getMaterializer() != nullptr) {
273 // A module with non-null materializer means that it is a lazy-load module.
276 std::error_code ec = module.materializeAll();
278 ALOGE("Failed to materialize the module `%s'! (%s)",
279 module.getModuleIdentifier().c_str(), ec.message().c_str());
289 *IRStream << module;
322 llvm::Module &module = script.getSource().getModule();
323 bcinfo::MetadataExtractor me(&module);
325 bccAssert(false && "Could not extract metadata for module!");
446 llvm::Module &module = pScript.getSource().getModule();
448 // Materialize the bitcode module in case this is a lazy-load module. Do not
450 // runtime library has not been merged into the module yet.
451 if (module.getMaterializer() != nullptr) {
452 std::error_code ec = module.materializeAll();
454 ALOGE("Failed to materialize module `%s' when screening globals! (%s)",
455 module.getModuleIdentifier().c_str(), ec.message().c_str());
463 pPM.run(module);