Home
last modified time | relevance | path

Searched refs:MOrErr (Results 1 – 6 of 6) sorted by relevance

/external/llvm/tools/llvm-dis/
Dllvm-dis.cpp147 ErrorOr<std::unique_ptr<Module>> MOrErr = in openInputFile() local
150 if (!MOrErr) in openInputFile()
151 return errorCodeToError(MOrErr.getError()); in openInputFile()
152 (*MOrErr)->materializeMetadata(); in openInputFile()
153 return std::move(*MOrErr); in openInputFile()
165 ErrorOr<std::unique_ptr<Module>> MOrErr = in openInputFile() local
167 (*MOrErr)->materializeAll(); in openInputFile()
168 return std::move(*MOrErr); in openInputFile()
184 Expected<std::unique_ptr<Module>> MOrErr = openInputFile(Context); in main() local
185 if (!MOrErr) { in main()
[all …]
/external/spirv-llvm/tools/llvm-spirv/
Dllvm-spirv.cpp128 ErrorOr<std::unique_ptr<Module>> MOrErr = in convertLLVMToSPIRV() local
131 if (std::error_code EC = MOrErr.getError()) { in convertLLVMToSPIRV()
136 std::unique_ptr<Module> M = std::move(*MOrErr); in convertLLVMToSPIRV()
248 ErrorOr<std::unique_ptr<Module>> MOrErr = in regularizeLLVM() local
251 if (std::error_code EC = MOrErr.getError()) { in regularizeLLVM()
256 std::unique_ptr<Module> M = std::move(*MOrErr); in regularizeLLVM()
/external/llvm/lib/CodeGen/
DParallelCG.cpp81 ErrorOr<std::unique_ptr<Module>> MOrErr = parseBitcodeFile( in splitCodeGen() local
85 if (!MOrErr) in splitCodeGen()
87 std::unique_ptr<Module> MPartInCtx = std::move(MOrErr.get()); in splitCodeGen()
/external/llvm/lib/LibDriver/
DLibDriver.cpp138 Expected<NewArchiveMember> MOrErr = in libDriverMain() local
140 if (!MOrErr) { in libDriverMain()
141 handleAllErrors(MOrErr.takeError(), [&](const llvm::ErrorInfoBase &EIB) { in libDriverMain()
146 Members.emplace_back(std::move(*MOrErr)); in libDriverMain()
/external/llvm/lib/Object/
DIRObjectFile.cpp320 ErrorOr<std::unique_ptr<Module>> MOrErr = in create() local
323 if (std::error_code EC = MOrErr.getError()) in create()
326 std::unique_ptr<Module> &M = MOrErr.get(); in create()
/external/llvm/lib/LTO/
DLTOModule.cpp201 ErrorOr<std::unique_ptr<Module>> MOrErr = in makeLTOModule() local
203 if (std::error_code EC = MOrErr.getError()) in makeLTOModule()
205 std::unique_ptr<Module> &M = *MOrErr; in makeLTOModule()