diff options
author | Alex Zinenko <zinenko@google.com> | 2022-01-06 23:30:15 +0100 |
---|---|---|
committer | Alex Zinenko <zinenko@google.com> | 2022-01-07 09:56:05 +0100 |
commit | f50cfc44d60bb6b12a2ee801a69b35fe7d6dbcf3 (patch) | |
tree | 35cf95707394c812f127b845d86ca7ac42ff420c /clang/unittests/Format/FormatTestJava.cpp | |
parent | 43ff4a6d5562099d9a34ef6bb567912ef5ce923e (diff) | |
download | llvm-f50cfc44d60bb6b12a2ee801a69b35fe7d6dbcf3.zip llvm-f50cfc44d60bb6b12a2ee801a69b35fe7d6dbcf3.tar.gz llvm-f50cfc44d60bb6b12a2ee801a69b35fe7d6dbcf3.tar.bz2 |
[mlir] Require struct indices in LLVM::GEPOp to be constant
Recent commits added a possibility for indices in LLVM dialect GEP operations
to be supplied directly as constant attributes to ensure they remain such until
translation to LLVM IR happens. Make this required for indexing into LLVM
struct types to match LLVM IR requirements, otherwise the translation would
assert on constructing such IR.
For better compatibility with MLIR-style operation construction interface,
allow GEP operations to be constructed programmatically using Values pointing
to known constant operations as struct indices.
Depends On D116758
Reviewed By: wsmoses
Differential Revision: https://reviews.llvm.org/D116759
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions