/external/llvm-project/mlir/lib/Translation/ |
D | Translation.cpp | 62 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/ |
D | Parser.h | 81 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()
|
D | Translation.h | 35 std::function<OwningModuleRef(llvm::SourceMgr &sourceMgr, MLIRContext *)>; 55 llvm::SourceMgr &sourceMgr, llvm::raw_ostream &output, MLIRContext *)>;
|
/external/llvm-project/mlir/lib/Support/ |
D | MlirOptMain.cpp | 46 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/ |
D | Lexer.cpp | 32 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()
|
D | Lexer.h | 25 explicit Lexer(const llvm::SourceMgr &sourceMgr, MLIRContext *context); 27 const llvm::SourceMgr &getSourceMgr() { return sourceMgr; } in getSourceMgr() 61 const llvm::SourceMgr &sourceMgr; variable
|
D | ParserState.h | 50 ParserState(const llvm::SourceMgr &sourceMgr, MLIRContext *ctx, in ParserState() 52 : context(ctx), lex(sourceMgr, ctx), curToken(lex.lexToken()), in ParserState()
|
D | Parser.cpp | 2063 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 …]
|
D | DialectSymbolParser.cpp | 484 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/ |
D | toyc.cpp | 74 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/ |
D | toyc.cpp | 75 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/ |
D | toyc.cpp | 78 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/ |
D | TranslateRegistration.cpp | 69 [](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/ |
D | tco.cpp | 61 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/ |
D | tf_mlir_translate_main.cc | 158 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/ |
D | toyc.cpp | 98 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/ |
D | toyc.cpp | 117 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/ |
D | toyc.cpp | 117 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/ |
D | JitRunner.cpp | 124 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/ |
D | RenamerClangTidyCheck.h | 112 void checkMacro(SourceManager &sourceMgr, const Token &MacroNameTok,
|
/external/llvm-project/mlir/lib/Target/LLVMIR/ |
D | ConvertFromLLVMIR.cpp | 859 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/ |
D | Diagnostics.md | 301 SourceMgr sourceMgr; 303 SourceMgrDiagnosticHandler sourceMgrHandler(sourceMgr, &context); 360 SourceMgr sourceMgr; 362 SourceMgrDiagnosticVerifierHandler sourceMgrHandler(sourceMgr, &context);
|