[clang] [CIR] Wire unreachable, return, and switch to MemoryEffectsOpInterface (PR #242180)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 18 03:52:25 PST 2026
================
@@ -1860,7 +1861,7 @@ def CIR_IsConstantOp : CIR_Op<"is_constant", [Pure]> {
def CIR_SwitchFlatOp : CIR_Op<"switch.flat", [
DeclareOpInterfaceMethods<BranchOpInterface, ["getSuccessorForOperands"]>,
- AttrSizedOperandSegments, Terminator
+ AttrSizedOperandSegments, Pure, Terminator
----------------
xlauko wrote:
This makes sense: it matches `cir.br`/`cir.brcond` and `cf.switch`.
https://github.com/llvm/llvm-project/pull/242180
More information about the cfe-commits
mailing list