[clang] [CIR][X86] Add MSVC bit scan builtins (PR #234304)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 26 01:20:56 PDT 2026
DWBH21 wrote:
I have split the checks into LLVMCIR and OGCG to account for the difference in their control-flow structures. In CIR, cir::IfOp::create is given the Mask != 0 condition with an empty else branch. so the bit-scan operation is emitted inside the then block, followed by the end block. OGCG instead branches to the end block when Mask == 0, so the condition and branch destinations are reversed and the end block appears before the bit-scan block in the emitted IR.
https://github.com/llvm/llvm-project/pull/234304
More information about the cfe-commits
mailing list