aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2021-03-04 11:52:14 -0800
committerRiver Riddle <riddleriver@gmail.com>2021-03-04 11:53:24 -0800
commit6bc767cd071ccdb41b5532f7d9cae22999e0fac4 (patch)
treee3eea39bc8c9fbc09bf31bc16c5bfe9c698e7a01 /clang/lib/CodeGen/CodeGenModule.h
parent9783e2098800b954c55ae598a1ce5c4b93444fc0 (diff)
downloadllvm-6bc767cd071ccdb41b5532f7d9cae22999e0fac4.zip
llvm-6bc767cd071ccdb41b5532f7d9cae22999e0fac4.tar.gz
llvm-6bc767cd071ccdb41b5532f7d9cae22999e0fac4.tar.bz2
[mlir] Add a DialectAsmParser::getChecked method
This function simplifies calling the getChecked methods on Attributes and Types from within the parser, and removes any need to use `getEncodedSourceLocation` for these methods (by using an SMLoc instead). This is much more efficient than using an mlir::Location, as the encoding process to produce an mlir::Location is inefficient and undesirable for parsing (locations used during parsing should not persist afterwards unless otherwise necessary). Differential Revision: https://reviews.llvm.org/D97900
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions