Home
last modified time | relevance | path

Searched refs:sourceMgr (Results 1 – 22 of 22) sorted by relevance

/external/llvm-project/mlir/lib/Translation/
DTranslation.cpp62 auto wrappedFn = [function](llvm::SourceMgr &sourceMgr, raw_ostream &output, in registerTranslateToMLIRFunction()
64 OwningModuleRef module = function(sourceMgr, context); in registerTranslateToMLIRFunction()
83 name, [function](llvm::SourceMgr &sourceMgr, MLIRContext *ctx) { in TranslateToMLIRRegistration() argument
85 sourceMgr.getMemoryBuffer(sourceMgr.getMainFileID()); in TranslateToMLIRRegistration()
98 llvm::SourceMgr &sourceMgr, raw_ostream &output, in TranslateFromMLIRRegistration()
101 auto module = OwningModuleRef(parseSourceFile(sourceMgr, context)); in TranslateFromMLIRRegistration()
180 llvm::SourceMgr sourceMgr; in mlirTranslateMain() local
181 sourceMgr.AddNewSourceBuffer(std::move(ownedBuffer), llvm::SMLoc()); in mlirTranslateMain()
184 SourceMgrDiagnosticHandler sourceMgrHandler(sourceMgr, &context); in mlirTranslateMain()
185 return (*translationRequested)(sourceMgr, os, &context); in mlirTranslateMain()
[all …]
/external/llvm-project/mlir/include/mlir/
DParser.h81 LogicalResult parseSourceFile(const llvm::SourceMgr &sourceMgr, Block *block,
104 llvm::SourceMgr &sourceMgr, Block *block,
129 parseSourceFile(const llvm::SourceMgr &sourceMgr, MLIRContext *context) { in parseSourceFile() argument
132 if (failed(parseSourceFile(sourceMgr, &block, context, &sourceFileLoc))) in parseSourceFile()
167 llvm::SourceMgr &sourceMgr, in parseSourceFile() argument
171 if (failed(parseSourceFile(filename, sourceMgr, &block, context, in parseSourceFile()
199 inline OwningModuleRef parseSourceFile(const llvm::SourceMgr &sourceMgr, in parseSourceFile() argument
201 return parseSourceFile<ModuleOp>(sourceMgr, context); in parseSourceFile()
208 llvm::SourceMgr &sourceMgr, in parseSourceFile() argument
210 return parseSourceFile<ModuleOp>(filename, sourceMgr, context); in parseSourceFile()
DTranslation.h35 std::function<OwningModuleRef(llvm::SourceMgr &sourceMgr, MLIRContext *)>;
55 llvm::SourceMgr &sourceMgr, llvm::raw_ostream &output, MLIRContext *)>;
/external/llvm-project/mlir/lib/Support/
DMlirOptMain.cpp46 bool verifyPasses, SourceMgr &sourceMgr, in performActions() argument
55 OwningModuleRef module(parseSourceFile(sourceMgr, context)); in performActions()
94 SourceMgr sourceMgr; in processBuffer() local
95 sourceMgr.AddNewSourceBuffer(std::move(ownedBuffer), SMLoc()); in processBuffer()
108 SourceMgrDiagnosticHandler sourceMgrHandler(sourceMgr, &context); in processBuffer()
109 return performActions(os, verifyDiagnostics, verifyPasses, sourceMgr, in processBuffer()
113 SourceMgrDiagnosticVerifierHandler sourceMgrHandler(sourceMgr, &context); in processBuffer()
118 performActions(os, verifyDiagnostics, verifyPasses, sourceMgr, &context, in processBuffer()
/external/llvm-project/mlir/lib/Parser/
DLexer.cpp32 Lexer::Lexer(const llvm::SourceMgr &sourceMgr, MLIRContext *context) in Lexer() argument
33 : sourceMgr(sourceMgr), context(context) { in Lexer()
34 auto bufferID = sourceMgr.getMainFileID(); in Lexer()
35 curBuffer = sourceMgr.getMemoryBuffer(bufferID)->getBuffer(); in Lexer()
42 auto &sourceMgr = getSourceMgr(); in getEncodedSourceLocation() local
43 unsigned mainFileID = sourceMgr.getMainFileID(); in getEncodedSourceLocation()
44 auto lineAndColumn = sourceMgr.getLineAndColumn(loc, mainFileID); in getEncodedSourceLocation()
45 auto *buffer = sourceMgr.getMemoryBuffer(mainFileID); in getEncodedSourceLocation()
DLexer.h25 explicit Lexer(const llvm::SourceMgr &sourceMgr, MLIRContext *context);
27 const llvm::SourceMgr &getSourceMgr() { return sourceMgr; } in getSourceMgr()
61 const llvm::SourceMgr &sourceMgr; variable
DParserState.h50 ParserState(const llvm::SourceMgr &sourceMgr, MLIRContext *ctx, in ParserState()
52 : context(ctx), lex(sourceMgr, ctx), curToken(lex.lexToken()), in ParserState()
DParser.cpp2063 LogicalResult mlir::parseSourceFile(const llvm::SourceMgr &sourceMgr, in parseSourceFile() argument
2066 const auto *sourceBuf = sourceMgr.getMemoryBuffer(sourceMgr.getMainFileID()); in parseSourceFile()
2074 ParserState state(sourceMgr, context, aliasState); in parseSourceFile()
2081 llvm::SourceMgr sourceMgr; in parseSourceFile() local
2082 return parseSourceFile(filename, sourceMgr, block, context, sourceFileLoc); in parseSourceFile()
2086 llvm::SourceMgr &sourceMgr, Block *block, in parseSourceFile() argument
2089 if (sourceMgr.getNumBuffers() != 0) { in parseSourceFile()
2100 sourceMgr.AddNewSourceBuffer(std::move(*file_or_err), llvm::SMLoc()); in parseSourceFile()
2101 return parseSourceFile(sourceMgr, block, context, sourceFileLoc); in parseSourceFile()
2111 SourceMgr sourceMgr; in parseSourceString() local
[all …]
DDialectSymbolParser.cpp484 SourceMgr sourceMgr; in parseSymbol() local
488 sourceMgr.AddNewSourceBuffer(std::move(memBuffer), SMLoc()); in parseSymbol()
489 ParserState state(sourceMgr, context, symbolState); in parseSymbol()
/external/llvm-project/mlir/examples/toy/Ch3/
Dtoyc.cpp74 int loadMLIR(llvm::SourceMgr &sourceMgr, mlir::MLIRContext &context, in loadMLIR() argument
95 sourceMgr.AddNewSourceBuffer(std::move(*fileOrErr), llvm::SMLoc()); in loadMLIR()
96 module = mlir::parseSourceFile(sourceMgr, &context); in loadMLIR()
110 llvm::SourceMgr sourceMgr; in dumpMLIR() local
111 mlir::SourceMgrDiagnosticHandler sourceMgrHandler(sourceMgr, &context); in dumpMLIR()
112 if (int error = loadMLIR(sourceMgr, context, module)) in dumpMLIR()
/external/llvm-project/mlir/examples/toy/Ch4/
Dtoyc.cpp75 int loadMLIR(llvm::SourceMgr &sourceMgr, mlir::MLIRContext &context, in loadMLIR() argument
96 sourceMgr.AddNewSourceBuffer(std::move(*fileOrErr), llvm::SMLoc()); in loadMLIR()
97 module = mlir::parseSourceFile(sourceMgr, &context); in loadMLIR()
111 llvm::SourceMgr sourceMgr; in dumpMLIR() local
112 mlir::SourceMgrDiagnosticHandler sourceMgrHandler(sourceMgr, &context); in dumpMLIR()
113 if (int error = loadMLIR(sourceMgr, context, module)) in dumpMLIR()
/external/llvm-project/mlir/examples/toy/Ch5/
Dtoyc.cpp78 int loadMLIR(llvm::SourceMgr &sourceMgr, mlir::MLIRContext &context, in loadMLIR() argument
99 sourceMgr.AddNewSourceBuffer(std::move(*fileOrErr), llvm::SMLoc()); in loadMLIR()
100 module = mlir::parseSourceFile(sourceMgr, &context); in loadMLIR()
114 llvm::SourceMgr sourceMgr; in dumpMLIR() local
115 mlir::SourceMgrDiagnosticHandler sourceMgrHandler(sourceMgr, &context); in dumpMLIR()
116 if (int error = loadMLIR(sourceMgr, context, module)) in dumpMLIR()
/external/llvm-project/mlir/lib/Dialect/SPIRV/Serialization/
DTranslateRegistration.cpp69 [](llvm::SourceMgr &sourceMgr, MLIRContext *context) { in registerFromSPIRVTranslation() argument
70 assert(sourceMgr.getNumBuffers() == 1 && "expected one buffer"); in registerFromSPIRVTranslation()
72 sourceMgr.getMemoryBuffer(sourceMgr.getMainFileID()), context); in registerFromSPIRVTranslation()
/external/llvm-project/flang/tools/tco/
Dtco.cpp61 SourceMgr sourceMgr; in compileFIR() local
62 sourceMgr.AddNewSourceBuffer(std::move(*fileOrErr), SMLoc()); in compileFIR()
65 auto owningRef = mlir::parseSourceFile(sourceMgr, &context); in compileFIR()
/external/tensorflow/tensorflow/compiler/mlir/
Dtf_mlir_translate_main.cc158 llvm::SourceMgr sourceMgr; in main() local
159 sourceMgr.AddNewSourceBuffer(std::move(ownedBuffer), llvm::SMLoc()); in main()
161 mlir::SourceMgrDiagnosticHandler diagnostic_handler(sourceMgr, &context); in main()
162 return (*requested_translation)(sourceMgr, os, &context); in main()
/external/llvm-project/mlir/examples/toy/Ch2/
Dtoyc.cpp98 llvm::SourceMgr sourceMgr; in dumpMLIR() local
99 sourceMgr.AddNewSourceBuffer(std::move(*fileOrErr), llvm::SMLoc()); in dumpMLIR()
100 mlir::OwningModuleRef module = mlir::parseSourceFile(sourceMgr, &context); in dumpMLIR()
/external/llvm-project/mlir/examples/toy/Ch6/
Dtoyc.cpp117 llvm::SourceMgr sourceMgr; in loadMLIR() local
118 sourceMgr.AddNewSourceBuffer(std::move(*fileOrErr), llvm::SMLoc()); in loadMLIR()
119 module = mlir::parseSourceFile(sourceMgr, &context); in loadMLIR()
/external/llvm-project/mlir/examples/toy/Ch7/
Dtoyc.cpp117 llvm::SourceMgr sourceMgr; in loadMLIR() local
118 sourceMgr.AddNewSourceBuffer(std::move(*fileOrErr), llvm::SMLoc()); in loadMLIR()
119 module = mlir::parseSourceFile(sourceMgr, &context); in loadMLIR()
/external/llvm-project/mlir/lib/ExecutionEngine/
DJitRunner.cpp124 llvm::SourceMgr sourceMgr; in parseMLIRInput() local
125 sourceMgr.AddNewSourceBuffer(std::move(file), llvm::SMLoc()); in parseMLIRInput()
126 return OwningModuleRef(parseSourceFile(sourceMgr, context)); in parseMLIRInput()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DRenamerClangTidyCheck.h112 void checkMacro(SourceManager &sourceMgr, const Token &MacroNameTok,
/external/llvm-project/mlir/lib/Target/LLVMIR/
DConvertFromLLVMIR.cpp859 OwningModuleRef translateLLVMIRToModule(llvm::SourceMgr &sourceMgr, in translateLLVMIRToModule() argument
864 *sourceMgr.getMemoryBuffer(sourceMgr.getMainFileID()), err, llvmContext); in translateLLVMIRToModule()
878 "import-llvm", [](llvm::SourceMgr &sourceMgr, MLIRContext *context) { in registerFromLLVMIRTranslation() argument
879 return ::translateLLVMIRToModule(sourceMgr, context); in registerFromLLVMIRTranslation()
/external/llvm-project/mlir/docs/
DDiagnostics.md301 SourceMgr sourceMgr;
303 SourceMgrDiagnosticHandler sourceMgrHandler(sourceMgr, &context);
360 SourceMgr sourceMgr;
362 SourceMgrDiagnosticVerifierHandler sourceMgrHandler(sourceMgr, &context);