aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2022-01-06 23:29:15 +0100
committerAlex Zinenko <zinenko@google.com>2022-01-07 09:56:01 +0100
commitcafaa3503643c047b670dcc387e22096930d2d6c (patch)
tree400d35d20e8998ba1b91f2334c9f45b549e96eaa /clang/unittests/Format/FormatTestJava.cpp
parent348bc76e3548c52dbcd442590ca0a7f5b09b7534 (diff)
downloadllvm-cafaa3503643c047b670dcc387e22096930d2d6c.zip
llvm-cafaa3503643c047b670dcc387e22096930d2d6c.tar.gz
llvm-cafaa3503643c047b670dcc387e22096930d2d6c.tar.bz2
[mlir] Make it possible to directly supply constant values to LLVM GEPOp
In LLVM IR, the GEP indices that correspond to structures are required to be i32 constants. MLIR models constants as just values defined by special operations, and there is no verification that it is the case for structure indices in GEP. Furthermore, some common transformations such as control flow simplification may lead to the operands becoming non-constant. Make it possible to directly supply constant values to LLVM GEPOp to guarantee they remain constant until the translation to LLVM IR. This is not yet a requirement and the verifier is not modified, this will be introduced separately. Reviewed By: wsmoses Differential Revision: https://reviews.llvm.org/D116757
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions