Home
last modified time | relevance | path

Searched refs:Val1 (Results 1 – 25 of 25) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DValue.cpp20 static bool areEquivalentIndirectionValues(const Value &Val1, in areEquivalentIndirectionValues() argument
22 if (auto *IndVal1 = dyn_cast<PointerValue>(&Val1)) { 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()
38 if (isa<TopBoolValue>(&Val1)) in areEquivalentValues()
40 return areEquivalentIndirectionValues(Val1, Val2); in areEquivalentValues()
H A DDataflowEnvironment.cpp96 static bool compareDistinctValues(QualType Type, Value &Val1, in compareDistinctValues() argument
106 switch (Model.compare(Type, Val1, Env1, Val2, Env2)) { in compareDistinctValues()
112 return equateUnknownValues(Val1.getKind()); in compareDistinctValues()
121 static Value *joinDistinctValues(QualType Type, Value &Val1, in joinDistinctValues() argument
128 if (isa<BoolValue>(&Val1) && isa<BoolValue>(&Val2)) { in joinDistinctValues()
142 auto &Expr1 = cast<BoolValue>(Val1).formula(); in joinDistinctValues()
156 Model.join(Type, Val1, Env1, Val2, Env2, *JoinedVal, JoinedEnv); in joinDistinctValues()
813 Value *Environment::joinValues(QualType Ty, Value *Val1, in joinValues() argument
817 if (Val1 == nullptr || Val2 == nullptr) in joinValues()
824 if (areEquivalentValues(*Val1, *Val2)) in joinValues()
[all …]
H A DDataflowAnalysisContext.cpp205 bool DataflowAnalysisContext::equivalentFormulas(const Formula &Val1, 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
385 llvm::Value *Expected = CGF.Builder.CreateLoad(Val1); in emitAtomicCmpXchg()
414 CGF.Builder.CreateStore(Old, Val1); 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()
[all …]
H A DCodeGenFunction.h225 saved_type(DominatingLLVMValue::saved_type Val1, unsigned K)
226 : Vals{Val1, DominatingLLVMValue::saved_type()}, K(K) {}
228 saved_type(DominatingLLVMValue::saved_type Val1,
230 : Vals{Val1, Val2}, K(ComplexAddress) {}
H A DCGBuiltin.cpp8765 Value *Val1 = Builder.CreateExtractValue(Val, 0); in EmitARMBuiltinExpr() local
8767 Val1 = Builder.CreateZExt(Val1, Int64Ty); in EmitARMBuiltinExpr()
8771 Val = Builder.CreateOr(Val, Val1); in EmitARMBuiltinExpr()
11131 Value *Val1 = Builder.CreateExtractValue(Val, 0); in EmitAArch64BuiltinExpr() local
11134 Val1 = Builder.CreateZExt(Val1, Int128Ty); in EmitAArch64BuiltinExpr()
11138 Val = Builder.CreateOr(Val, Val1); in EmitAArch64BuiltinExpr()
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp375 Value *Val1 = getRandomValue(Val0->getType()); in Act() local
379 Val1->getType()->isPointerTy()) in Act()
408 PT->push_back(BinaryOperator::Create(Op, Val0, Val1, "B", Term)); in Act()
496 Value *Val1 = getRandomValue(Val0->getType()); in Act() local
516 Value *V = new ShuffleVectorInst(Val0, Val1, Mask, "Shuff", in Act()
528 Value *Val1 = getRandomValue(Val0->getType()->getScalarType()); in Act() local
531 Val0, Val1, in Act()
623 Value *Val1 = getRandomValue(Val0->getType()); in Act() local
634 Value *V = SelectInst::Create(Cond, Val0, Val1, "Sl", BB->getTerminator()); in Act()
645 Value *Val1 = getRandomValue(Val0->getType()); in Act() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundCheckerV2.cpp390 static bool tryDividePair(std::optional<int64_t> &Val1, in tryDividePair() argument
394 const bool Val1HasRemainder = Val1 && *Val1 % Divisor; in tryDividePair()
397 if (Val1) in tryDividePair()
398 *Val1 /= Divisor; in tryDividePair()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowEnvironment.h87 virtual ComparisonResult compare(QualType Type, const Value &Val1, in compare() argument
109 virtual void join(QualType Type, const Value &Val1, const Environment &Env1, in join() argument
268 static Value *joinValues(QualType Ty, Value *Val1, const Environment &Env1,
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
361 {getAsVgpr(MatchInfo.Val0), getAsVgpr(MatchInfo.Val1), in applyMed3()
H A DAMDGPUInstCombineIntrinsic.cpp639 APFloat Val1 = C1->getValueAPF(); in instCombineIntrinsic() local
641 Val1.convert(HalfSem, APFloat::rmTowardZero, &LosesInfo); in instCombineIntrinsic()
645 ConstantFP::get(II.getContext(), Val1)}); in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelDAGToDAG.cpp3104 SDValue Val1 = Ins1.getOperand(1); in tryInsertVectorElt() local
3106 if (Val1.getOpcode() == ISD::FP_ROUND || Val2.getOpcode() == ISD::FP_ROUND) in tryInsertVectorElt()
3110 if ((Val1.getOpcode() == ISD::EXTRACT_VECTOR_ELT || in tryInsertVectorElt()
3111 Val1.getOpcode() == ARMISD::VGETLANEu) && in tryInsertVectorElt()
3114 isa<ConstantSDNode>(Val1.getOperand(1)) && in tryInsertVectorElt()
3116 (Val1.getOperand(0).getValueType() == MVT::v8f16 || in tryInsertVectorElt()
3117 Val1.getOperand(0).getValueType() == MVT::v8i16) && in tryInsertVectorElt()
3120 unsigned ExtractLane1 = Val1.getConstantOperandVal(1); in tryInsertVectorElt()
3125 if (Val1.getOperand(0) == Val2.getOperand(0) && ExtractLane2 % 2 == 0 && in tryInsertVectorElt()
3128 ARM::ssub_0 + ExtractLane2 / 2, dl, MVT::f32, Val1.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
5667 unsigned Cost1 = ConstantMaterializationCost(Val1, Subtarget, ForCodesize); in HasLowerConstantMaterializationCost()
5675 return ConstantMaterializationCost(Val1, Subtarget, !ForCodesize) < in HasLowerConstantMaterializationCost()
H A DARMISelLowering.cpp5352 int64_t Val1 = cast<ConstantSDNode>(K1)->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/Target/Hexagon/
H A DHexagonVectorCombine.cpp140 Value *vdeal(IRBuilderBase &Builder, Value *Val0, Value *Val1) const;
141 Value *vshuff(IRBuilderBase &Builder, Value *Val0, Value *Val1) const;
2543 Value *Val1) const -> Value * { in vdeal()
2544 assert(Val0->getType() == Val1->getType()); in vdeal()
2552 return Builder.CreateShuffleVector(Val0, Val1, Mask, "shf"); in vdeal()
2556 Value *Val1) const -> Value * { // in vshuff()
2557 assert(Val0->getType() == Val1->getType()); in vshuff()
2565 return Builder.CreateShuffleVector(Val0, Val1, Mask, "shf"); in vshuff()
/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/Transforms/Utils/
H A DInlineFunction.cpp794 auto *Val1 = mdconst::dyn_extract<ConstantInt>(*MIBStackIter); in haveCommonPrefix() local
796 assert(Val1 && Val2); in haveCommonPrefix()
797 if (Val1->getZExtValue() != Val2->getZExtValue()) in haveCommonPrefix()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp4258 Constant *Val0, *Val1; in parseValID() local
4273 parseGlobalTypeAndValue(Val1) || in parseValID()
4276 if (Val0->getType() != Val1->getType()) in parseValID()
4285 ID.ConstantVal = ConstantExpr::get(Opc, Val0, Val1, Flags); in parseValID()
8543 Value *Val0, *Val1; LocTy Loc0, Loc1; in parseInsertValue() local
8548 parseTypeAndValue(Val1, Loc1, PFS) || in parseInsertValue()
8558 if (IndexedType != Val1->getType()) in parseInsertValue()
8560 getTypeString(Val1->getType()) + "' instead of '" + in parseInsertValue()
8562 Inst = InsertValueInst::Create(Val0, Val1, Indices); in parseInsertValue()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTStructuralEquivalence.cpp1909 llvm::APSInt Val1 = EC1->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
18721 if (ISD::isConstantSplatVector(N0->getOperand(i).getNode(), Val1) && in tryCombineToBSL()
18723 (BitMask & ~Val1.getZExtValue()) == Val2.getZExtValue()) { in tryCombineToBSL()
19873 SDValue Val1 = Op1.getOperand(0); in performAddUADDVCombine() local
19875 EVT ValVT = Val1->getValueType(0); in performAddUADDVCombine()
19877 SDValue AddVal = DAG.getNode(ISD::ADD, DL, ValVT, Val1, Val2); in performAddUADDVCombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp43087 uint64_t Val1 = Cst1->getZExtValue(); in SimplifyDemandedBitsForTargetNode() local
43088 uint64_t MaskedVal1 = Val1 & 0xFFFF; in SimplifyDemandedBitsForTargetNode()
43089 if (Opc == X86ISD::BEXTR && MaskedVal1 != Val1) { in SimplifyDemandedBitsForTargetNode()