Home
last modified time | relevance | path

Searched refs:Val2 (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DValue.cpp21 const Value &Val2) { in areEquivalentIndirectionValues() argument
23 auto *IndVal2 = cast<PointerValue>(&Val2); in areEquivalentIndirectionValues()
29 bool areEquivalentValues(const Value &Val1, const Value &Val2) { in areEquivalentValues() argument
30 if (&Val1 == &Val2) in areEquivalentValues()
32 if (Val1.getKind() != Val2.getKind()) in areEquivalentValues()
36 if (!Val1.properties().empty() || !Val2.properties().empty()) in areEquivalentValues()
40 return areEquivalentIndirectionValues(Val1, Val2); in areEquivalentValues()
H A DDataflowEnvironment.cpp97 const Environment &Env1, Value &Val2, in compareDistinctValues() argument
106 switch (Model.compare(Type, Val1, Env1, Val2, Env2)) { in compareDistinctValues()
122 const Environment &Env1, Value &Val2, in joinDistinctValues() argument
128 if (isa<BoolValue>(&Val1) && isa<BoolValue>(&Val2)) { in joinDistinctValues()
143 auto &Expr2 = cast<BoolValue>(Val2).formula(); in joinDistinctValues()
156 Model.join(Type, Val1, Env1, Val2, Env2, *JoinedVal, JoinedEnv); in joinDistinctValues()
814 const Environment &Env1, Value *Val2, in joinValues() argument
817 if (Val1 == nullptr || Val2 == nullptr) in joinValues()
824 if (areEquivalentValues(*Val1, *Val2)) in joinValues()
828 return joinDistinctValues(Ty, *Val1, Env1, *Val2, Env2, JoinedEnv, Model); in joinValues()
H A DDataflowAnalysisContext.cpp206 const Formula &Val2) { in equivalentFormulas() argument
208 Constraints.insert(&arena().makeNot(arena().makeEquals(Val1, Val2))); in equivalentFormulas()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DBypassSlowDivision.h42 static bool isEqual(const DivRemMapKey &Val1, const DivRemMapKey &Val2) {
43 return Val1.SignedOp == Val2.SignedOp && Val1.Dividend == Val2.Dividend &&
44 Val1.Divisor == Val2.Divisor;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGAtomic.cpp379 Address Val1, Address Val2, in emitAtomicCmpXchg() argument
386 llvm::Value *Desired = CGF.Builder.CreateLoad(Val2); in emitAtomicCmpXchg()
428 Address Val1, Address Val2, in emitAtomicCmpXchgFailureSet() argument
459 emitAtomicCmpXchg(CGF, E, IsWeak, Dest, Ptr, Val1, Val2, Size, SuccessOrder, in emitAtomicCmpXchgFailureSet()
484 emitAtomicCmpXchg(CGF, E, IsWeak, Dest, Ptr, Val1, Val2, in emitAtomicCmpXchgFailureSet()
489 emitAtomicCmpXchg(CGF, E, IsWeak, Dest, Ptr, Val1, Val2, Size, SuccessOrder, in emitAtomicCmpXchgFailureSet()
494 emitAtomicCmpXchg(CGF, E, IsWeak, Dest, Ptr, Val1, Val2, Size, SuccessOrder, in emitAtomicCmpXchgFailureSet()
526 Address Ptr, Address Val1, Address Val2, in EmitAtomicOp() argument
542 emitAtomicCmpXchgFailureSet(CGF, E, false, Dest, Ptr, Val1, Val2, in EmitAtomicOp()
548 emitAtomicCmpXchgFailureSet(CGF, E, true, Dest, Ptr, Val1, Val2, in EmitAtomicOp()
[all …]
H A DCodeGenFunction.h229 DominatingLLVMValue::saved_type Val2)
230 : Vals{Val1, Val2}, K(ComplexAddress) {}
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLibCallsShrinkWrap.cpp85 float Val2) { in createOrCond() argument
87 auto Cond2 = createCond(BBBuilder, Arg2, Cmp2, Val2); in createOrCond()
94 CmpInst::Predicate Cmp2, float Val2) { in createOrCond() argument
96 return createOrCond(CI, Arg, Cmp, Val, Arg, Cmp2, Val2); in createOrCond()
H A DInlineFunction.cpp795 auto *Val2 = mdconst::dyn_extract<ConstantInt>(*CallsiteStackIter); in haveCommonPrefix() local
796 assert(Val1 && Val2); in haveCommonPrefix()
797 if (Val1->getZExtValue() != Val2->getZExtValue()) in haveCommonPrefix()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp1591 APFloat Val2 = APFloat(Val); in isValueValidForType() local
1599 if (&Val2.getSemantics() == &APFloat::IEEEhalf()) in isValueValidForType()
1601 Val2.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1605 if (&Val2.getSemantics() == &APFloat::BFloat()) in isValueValidForType()
1607 Val2.convert(APFloat::BFloat(), APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1611 if (&Val2.getSemantics() == &APFloat::IEEEsingle()) in isValueValidForType()
1613 Val2.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, &losesInfo); in isValueValidForType()
1617 if (&Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType()
1618 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1619 &Val2.getSemantics() == &APFloat::IEEEsingle() || in isValueValidForType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundCheckerV2.cpp391 std::optional<int64_t> &Val2, int64_t Divisor) { in tryDividePair() argument
395 const bool Val2HasRemainder = Val2 && *Val2 % Divisor; in tryDividePair()
399 if (Val2) in tryDividePair()
400 *Val2 /= Divisor; in tryDividePair()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowEnvironment.h88 const Environment &Env1, const Value &Val2, in compare() argument
110 const Value &Val2, const Environment &Env2, in join() argument
269 Value *Val2, const Environment &Env2,
H A DValue.h91 bool areEquivalentValues(const Value &Val1, const Value &Val2);
H A DDataflowAnalysisContext.h167 bool equivalentFormulas(const Formula &Val1, const Formula &Val2);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegBankCombiner.cpp76 Register Val0, Val1, Val2; member
362 getAsVgpr(MatchInfo.Val2)}, in applyMed3()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DInstrProf.h777 static inline double score(uint64_t Val1, uint64_t Val2, double Sum1, in score()
781 return std::min(Val1 / Sum1, Val2 / Sum2); in score()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelDAGToDAG.cpp3105 SDValue Val2 = Ins2.getOperand(1); in tryInsertVectorElt() local
3106 if (Val1.getOpcode() == ISD::FP_ROUND || Val2.getOpcode() == ISD::FP_ROUND) in tryInsertVectorElt()
3112 (Val2.getOpcode() == ISD::EXTRACT_VECTOR_ELT || in tryInsertVectorElt()
3113 Val2.getOpcode() == ARMISD::VGETLANEu) && in tryInsertVectorElt()
3115 isa<ConstantSDNode>(Val2.getOperand(1)) && in tryInsertVectorElt()
3118 (Val2.getOperand(0).getValueType() == MVT::v8f16 || in tryInsertVectorElt()
3119 Val2.getOperand(0).getValueType() == MVT::v8i16)) { in tryInsertVectorElt()
3121 unsigned ExtractLane2 = Val2.getConstantOperandVal(1); in tryInsertVectorElt()
3125 if (Val1.getOperand(0) == Val2.getOperand(0) && ExtractLane2 % 2 == 0 && in tryInsertVectorElt()
3142 ARM::ssub_0 + ExtractLane2 / 2, dl, MVT::f32, Val2.getOperand(0)); in tryInsertVectorElt()
[all …]
H A DARMBaseInstrInfo.h886 bool HasLowerConstantMaterializationCost(unsigned Val1, unsigned Val2,
H A DARMBaseInstrInfo.cpp5663 bool llvm::HasLowerConstantMaterializationCost(unsigned Val1, unsigned Val2, in HasLowerConstantMaterializationCost() argument
5668 unsigned Cost2 = ConstantMaterializationCost(Val2, Subtarget, ForCodesize); in HasLowerConstantMaterializationCost()
5676 ConstantMaterializationCost(Val2, Subtarget, !ForCodesize); in HasLowerConstantMaterializationCost()
H A DARMISelLowering.cpp5353 int64_t Val2 = cast<ConstantSDNode>(K2)->getSExtValue(); in LowerSaturatingConditional() local
5354 int64_t PosVal = std::max(Val1, Val2); in LowerSaturatingConditional()
5355 int64_t NegVal = std::min(Val1, Val2); in LowerSaturatingConditional()
5357 if (!((Val1 > Val2 && isLTorLE(CC1)) || (Val1 < Val2 && isLTorLE(CC2))) || in LowerSaturatingConditional()
5366 if (Val1 == ~Val2) in LowerSaturatingConditional()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp2279 const APInt *Val, *Val2; in visitCallInst() local
2286 match(Other->getArgOperand(1), m_APInt(Val2))) { in visitCallInst()
2288 NewVal = Val->uadd_sat(*Val2); in visitCallInst()
2289 else if (Val->isNonNegative() == Val2->isNonNegative()) { in visitCallInst()
2291 NewVal = Val->sadd_ov(*Val2, Overflow); in visitCallInst()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTStructuralEquivalence.cpp1910 llvm::APSInt Val2 = EC2->getInitVal(); in IsStructurallyEquivalent() local
1911 if (!llvm::APSInt::isSameValue(Val1, Val2) || in IsStructurallyEquivalent()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp18719 APInt Val1, Val2; in tryCombineToBSL() local
18722 ISD::isConstantSplatVector(N1->getOperand(j).getNode(), Val2) && in tryCombineToBSL()
18723 (BitMask & ~Val1.getZExtValue()) == Val2.getZExtValue()) { in tryCombineToBSL()
19874 SDValue Val2 = Op2.getOperand(0); in performAddUADDVCombine() local
19877 SDValue AddVal = DAG.getNode(ISD::ADD, DL, ValVT, Val1, Val2); in performAddUADDVCombine()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp133 APFloat Val2 = APFloat(Val); in isValueValidForType() local
135 (void) Val2.convert(SelectionDAG::EVTToAPFloatSemantics(VT), in isValueValidForType()