[llvm] [ConstantTime][LLVM] Add llvm.ct.select intrinsic with generic SelectionDAG lowering (PR #166702)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 00:52:43 PST 2026
================
@@ -476,9 +476,10 @@ class LLVM_ABI TargetLoweringBase {
MachineMemOperand::Flags
getVPIntrinsicMemOperandFlags(const VPIntrinsic &VPIntrin) const;
- virtual bool isSelectSupported(SelectSupportKind /*kind*/) const {
- return true;
- }
+ virtual bool isSelectSupported(SelectSupportKind kind) const { return true; }
+
+ /// Return true if the target has custom lowering for constant-time select.
+ virtual bool isCtSelectSupported(EVT VT) const { return false; }
----------------
arsenm wrote:
This should just come from the ordinary operation legality rather than adding a new side control
https://github.com/llvm/llvm-project/pull/166702
More information about the llvm-commits
mailing list