aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/Comment.cpp
diff options
context:
space:
mode:
authorLei Zhang <antiagainst@google.com>2021-12-11 14:40:24 -0500
committerLei Zhang <antiagainst@google.com>2021-12-11 14:47:19 -0500
commit731676b10dfe684d7f166cb0f85cd6ede1660119 (patch)
treee2954109766e42224eceb3b92560f9eb37e52c44 /clang/lib/AST/Comment.cpp
parent36b8a4f9f39c9d1b9cd6cae9aebc82cbdb37815b (diff)
downloadllvm-731676b10dfe684d7f166cb0f85cd6ede1660119.zip
llvm-731676b10dfe684d7f166cb0f85cd6ede1660119.tar.gz
llvm-731676b10dfe684d7f166cb0f85cd6ede1660119.tar.bz2
[mlir][spirv] Fix nested control flow serialization
If we have a `spv.mlir.selection` op nested in a `spv.mlir.loop` op, when serializing the loop's block, we might need to jump from the selection op's merge block, which might be different than the immediate MLIR IR predecessor block. But we still need to get the block argument from the MLIR IR predecessor block. Also, if the `spv.mlir.selection` is in the `spv.mlir.loop`'s header block, we need to make sure `OpLoopMerge` is emitted in the current block before start processing the nested selection op. Otherwise we'll see the LoopMerge in the wrong SPIR-V basic block. Reviewed By: Hardcode84 Differential Revision: https://reviews.llvm.org/D115560
Diffstat (limited to 'clang/lib/AST/Comment.cpp')
0 files changed, 0 insertions, 0 deletions