Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFAdjustOpt.cpp110 auto ConstOp1 = dyn_cast<ConstantInt>(Icmp->getOperand(1)); in adjustICmpToBuiltin() local
111 if (!ConstOp1) in adjustICmpToBuiltin()
114 auto ConstOp1Val = ConstOp1->getValue().getZExtValue(); in adjustICmpToBuiltin()
129 M, Intrinsic::bpf_compare, {Op0->getType(), ConstOp1->getType()}); in adjustICmpToBuiltin()
130 auto *NewInst = CallInst::Create(Fn, {Opcode, Op0, ConstOp1}); in adjustICmpToBuiltin()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp2821 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1.getNode()); in adjustZeroCmp() local
2822 if (!ConstOp1 || ConstOp1->getValueSizeInBits(0) > 64) in adjustZeroCmp()
2825 int64_t Value = ConstOp1->getSExtValue(); in adjustZeroCmp()
2855 auto *ConstOp1 = cast<ConstantSDNode>(C.Op1); in adjustSubwordCmp() local
2856 if (!ConstOp1 || ConstOp1->getValueSizeInBits(0) > 64) in adjustSubwordCmp()
2858 uint64_t Value = ConstOp1->getZExtValue(); in adjustSubwordCmp()
2862 int64_t SignedValue = ConstOp1->getSExtValue(); in adjustSubwordCmp()
2907 Value != ConstOp1->getZExtValue()) in adjustSubwordCmp()
2950 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1); in shouldSwapCmpOperands() local
2951 if (ConstOp1 && ConstOp1->getZExtValue() == 0) in shouldSwapCmpOperands()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2434 bool ConstOp1 = isa<Constant>(RHS); in foldVectorBinop() local
2440 NewC = getSafeVectorConstantForBinop(Opcode, NewC, ConstOp1); in foldVectorBinop()
2444 Value *NewLHS = ConstOp1 ? V1 : NewC; in foldVectorBinop()
2445 Value *NewRHS = ConstOp1 ? NewC : V1; in foldVectorBinop()