Home
last modified time | relevance | path

Searched refs:ConstOp1 (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp128 auto ConstOp1 = dyn_cast<ConstantInt>(Icmp->getOperand(1)); in adjustICmpToBuiltin() local
129 if (!ConstOp1) in adjustICmpToBuiltin()
132 auto ConstOp1Val = ConstOp1->getValue().getZExtValue(); in adjustICmpToBuiltin()
147 M, Intrinsic::bpf_compare, {Op0->getType(), ConstOp1->getType()}); in adjustICmpToBuiltin()
148 auto *NewInst = CallInst::Create(Fn, {Opcode, Op0, ConstOp1}); in adjustICmpToBuiltin()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp2249 if (!ConstOp1) in adjustZeroCmp()
2252 int64_t Value = ConstOp1->getSExtValue(); in adjustZeroCmp()
2282 auto *ConstOp1 = cast<ConstantSDNode>(C.Op1); in adjustSubwordCmp() local
2283 uint64_t Value = ConstOp1->getZExtValue(); in adjustSubwordCmp()
2332 Value != ConstOp1->getZExtValue()) in adjustSubwordCmp()
2374 if (ConstOp1 && ConstOp1->getZExtValue() == 0) in shouldSwapCmpOperands()
2387 if (!ConstOp1) in shouldSwapCmpOperands()
2392 isUInt<16>(ConstOp1->getZExtValue())) in shouldSwapCmpOperands()
2397 isInt<16>(ConstOp1->getSExtValue())) in shouldSwapCmpOperands()
2623 if (!ConstOp1) in adjustForTestUnderMask()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1770 bool ConstOp1 = isa<Constant>(RHS); in foldVectorBinop() local
1807 ConstOp1 in foldVectorBinop()
1821 if (Inst.isIntDivRem() || (Inst.isShift() && ConstOp1)) in foldVectorBinop()
1822 NewC = getSafeVectorConstantForBinop(Opcode, NewC, ConstOp1); in foldVectorBinop()
1826 Value *NewLHS = ConstOp1 ? V1 : NewC; in foldVectorBinop()
1827 Value *NewRHS = ConstOp1 ? NewC : V1; in foldVectorBinop()