forked from OSchip/llvm-project
d85eb4e2d6
MLIR has a common pattern for "arguments" that uses syntax like `%x : i32 {attrs} loc("sourceloc")` which is implemented in adhoc ways throughout the codebase. The approach this uses is verbose (because it is implemented with parallel arrays) and inconsistent (e.g. lots of things drop source location info). Solve this by introducing OpAsmParser::Argument and make addRegion (which sets up BlockArguments for the region) take it. Convert the world to propagating this down. This means that we correctly capture and propagate source location information in a lot more cases (e.g. see the affine.for testcase example), and it also simplifies much code. Differential Revision: https://reviews.llvm.org/D124649 |
||
---|---|---|
.. | ||
Builder | ||
CodeGen | ||
Dialect | ||
Support | ||
Transforms | ||
.clang-format | ||
.clang-tidy | ||
CMakeLists.txt |