This allows for parsing strings that have escape sequences, which require constructing
a string (as they can't be represented by looking at the Token contents directly).
Depends On D108586
Paths
| Differential D108589
[mlir] Update DialectAsmParser::parseString to use std::string instead of StringRef ClosedPublic Authored by rriddle on Aug 23 2021, 3:00 PM.
Details Summary This allows for parsing strings that have escape sequences, which require constructing Depends On D108586
Diff Detail
Event TimelineComment Actions OOC why can't they be represented as a token? (I'm assuming as we need to differentiate at higher level than where token is constructed but could be wrong) This revision is now accepted and ready to land.Aug 23 2021, 5:37 PM Comment Actions
They are represented as tokens, but we can't use the raw token value as the string (like we currently are). E.g. we \22foo\22 is not the same as "foo". Closed by commit rG9658b061dd29: [mlir] Update DialectAsmParser::parseString to use std::string instead of… (authored by rriddle). · Explain WhyAug 25 2021, 2:38 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 368218 mlir/include/mlir/IR/DialectImplementation.h
mlir/lib/Dialect/DLTI/DLTI.cpp
mlir/lib/Dialect/EmitC/IR/EmitC.cpp
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp
mlir/lib/Parser/DialectSymbolParser.cpp
|