Lines Matching refs:module
58 bool validateLayoutOfExportedTypes(const llvm::Module &module, in validateLayoutOfExportedTypes() argument
65 module.getNamedMetadata(ExportedTypeMetadataName); in validateLayoutOfExportedTypes()
79 llvm::StructType *const exportedType = module.getTypeByName(exportedTypeName); in validateLayoutOfExportedTypes()
304 llvm::Module &module = script.getSource().getModule(); in compile() local
311 const std::string &triple = module.getTargetTriple(); in compile()
327 if (!validateLayoutOfExportedTypes(module, module.getDataLayout(), dl)) in compile()
341 module.setTargetTriple(getTargetMachine().getTargetTriple().str()); in compile()
342 module.setDataLayout(getTargetMachine().createDataLayout()); in compile()
345 if (module.getMaterializer() != nullptr) { in compile()
349 std::error_code ec = module.materializeAll(); in compile()
352 module.getModuleIdentifier().c_str(), ec.message().c_str()); in compile()
362 *IRStream << module; in compile()
371 llvm::Module &module = script.getSource().getModule(); in addInternalizeSymbolsPass() local
372 bcinfo::MetadataExtractor me(&module); in addInternalizeSymbolsPass()
490 llvm::Module &module = script.getSource().getModule(); in screenGlobalFunctions() local
495 if (module.getMaterializer() != nullptr) { in screenGlobalFunctions()
496 std::error_code ec = module.materializeAll(); in screenGlobalFunctions()
499 module.getModuleIdentifier().c_str(), ec.message().c_str()); in screenGlobalFunctions()
507 pPM.run(module); in screenGlobalFunctions()