[clang] [llvm] [SPIR-V] Add SPIR-V structurizer (PR #107408)

Vyacheslav Levytskyy via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 12 03:12:52 PDT 2024


Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/107408 at github.com>


VyacheslavLevytskyy wrote:

> OpLoopMerge are taking BB operands, but verifier expected register operand.

Hopefully, the fix may be as simple as to change lib/Target/SPIRV/SPIRVInstrInfo.td line 620-621 `ID:$merge, ID:$continue` into `unknown:$merge, unknown:$continue` as in line 626 for OpBranch:
`def OpBranch: Op<249, (outs), (ins unknown:$label), "OpBranch $label">;`

https://github.com/llvm/llvm-project/pull/107408


More information about the cfe-commits mailing list