| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | Value.cpp | 18 static bool areEquivalentIndirectionValues(const Value &Val1, in areEquivalentIndirectionValues() argument 20 if (auto *IndVal1 = dyn_cast<PointerValue>(&Val1)) { in areEquivalentIndirectionValues() 27 bool areEquivalentValues(const Value &Val1, const Value &Val2) { in areEquivalentValues() argument 28 if (&Val1 == &Val2) in areEquivalentValues() 30 if (Val1.getKind() != Val2.getKind()) in areEquivalentValues() 34 if (!Val1.properties().empty() || !Val2.properties().empty()) in areEquivalentValues() 36 if (isa<TopBoolValue>(&Val1)) in areEquivalentValues() 38 return areEquivalentIndirectionValues(Val1, Val2); in areEquivalentValues()
|
| H A D | DataflowEnvironment.cpp | 94 static bool compareDistinctValues(QualType Type, Value &Val1, in compareDistinctValues() argument 104 switch (Model.compare(Type, Val1, Env1, Val2, Env2)) { in compareDistinctValues() 110 return equateUnknownValues(Val1.getKind()); in compareDistinctValues() 119 static Value *joinDistinctValues(QualType Type, Value &Val1, in joinDistinctValues() argument 126 if (isa<BoolValue>(&Val1) && isa<BoolValue>(&Val2)) { in joinDistinctValues() 140 auto &Expr1 = cast<BoolValue>(Val1).formula(); in joinDistinctValues() 154 Model.join(Type, Val1, Env1, Val2, Env2, *JoinedVal, JoinedEnv); in joinDistinctValues() 812 Value *Environment::joinValues(QualType Ty, Value *Val1, in joinValues() argument 816 if (Val1 == nullptr || Val2 == nullptr) in joinValues() 823 if (areEquivalentValues(*Val1, *Val2)) in joinValues() [all …]
|
| H A D | DataflowAnalysisContext.cpp | 204 bool DataflowAnalysisContext::equivalentFormulas(const Formula &Val1, in equivalentFormulas() argument 207 Constraints.insert(&arena().makeNot(arena().makeEquals(Val1, Val2))); in equivalentFormulas()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | BypassSlowDivision.h | 42 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 D | CGAtomic.cpp | 378 Address Val1, Address Val2, in emitAtomicCmpXchg() argument 384 llvm::Value *Expected = CGF.Builder.CreateLoad(Val1); in emitAtomicCmpXchg() 414 auto *I = CGF.Builder.CreateStore(Old, Val1); in emitAtomicCmpXchg() 430 Address Val1, Address Val2, in emitAtomicCmpXchgFailureSet() argument 461 emitAtomicCmpXchg(CGF, E, IsWeak, Dest, Ptr, Val1, Val2, Size, SuccessOrder, in emitAtomicCmpXchgFailureSet() 486 emitAtomicCmpXchg(CGF, E, IsWeak, Dest, Ptr, Val1, Val2, in emitAtomicCmpXchgFailureSet() 491 emitAtomicCmpXchg(CGF, E, IsWeak, Dest, Ptr, Val1, Val2, Size, SuccessOrder, in emitAtomicCmpXchgFailureSet() 496 emitAtomicCmpXchg(CGF, E, IsWeak, Dest, Ptr, Val1, Val2, Size, SuccessOrder, in emitAtomicCmpXchgFailureSet() 528 Address Ptr, Address Val1, Address Val2, in EmitAtomicOp() argument 544 emitAtomicCmpXchgFailureSet(CGF, E, false, Dest, Ptr, Val1, Val2, in EmitAtomicOp() [all …]
|
| H A D | CodeGenFunction.h | 201 saved_type(DominatingLLVMValue::saved_type Val1, unsigned K) 202 : Vals{Val1, DominatingLLVMValue::saved_type()}, K(K) {} 204 saved_type(DominatingLLVMValue::saved_type Val1, 206 : Vals{Val1, Val2}, K(ComplexAddress) {}
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 363 Value *Val1 = getRandomValue(Val0->getType()); in Act() local 367 Val1->getType()->isPointerTy()) in Act() 397 BinaryOperator::Create(Op, Val0, Val1, "B", Term->getIterator())); in Act() 484 Value *Val1 = getRandomValue(Val0->getType()); in Act() local 504 Value *V = new ShuffleVectorInst(Val0, Val1, Mask, "Shuff", in Act() 516 Value *Val1 = getRandomValue(Val0->getType()->getScalarType()); in Act() local 519 Val0, Val1, getRandomValue(Type::getInt32Ty(BB->getContext())), "I", in Act() 613 Value *Val1 = getRandomValue(Val0->getType()); in Act() local 624 Value *V = SelectInst::Create(Cond, Val0, Val1, "Sl", in Act() 636 Value *Val1 = getRandomValue(Val0->getType()); in Act() local [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MismatchedIteratorChecker.cpp | 39 void reportBug(StringRef Message, SVal Val1, SVal Val2, CheckerContext &C, 275 void MismatchedIteratorChecker::reportBug(StringRef Message, SVal Val1, in reportBug() argument 280 R->markInteresting(Val1); in reportBug()
|
| H A D | ArrayBoundChecker.cpp | 407 static bool tryDividePair(std::optional<int64_t> &Val1, in tryDividePair() argument 411 const bool Val1HasRemainder = Val1 && *Val1 % Divisor; in tryDividePair() 415 if (Val1) in tryDividePair() 416 *Val1 /= Divisor; in tryDividePair()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | DataflowEnvironment.h | 87 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 D | Value.h | 91 bool areEquivalentValues(const Value &Val1, const Value &Val2);
|
| H A D | DataflowAnalysisContext.h | 167 bool equivalentFormulas(const Formula &Val1, const Formula &Val2);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPURegBankLegalizeHelper.cpp | 199 auto [Val0, Val1] = unpackAExt(MI.getOperand(1).getReg()); in lowerUnpackBitShift() 202 Hi = B.buildInstr(MI.getOpcode(), {SgprRB_S32}, {Val1, Amt1}).getReg(0); in lowerUnpackBitShift() 206 auto [Val0, Val1] = unpackZExt(MI.getOperand(1).getReg()); in lowerUnpackBitShift() 209 Hi = B.buildInstr(MI.getOpcode(), {SgprRB_S32}, {Val1, Amt1}).getReg(0); in lowerUnpackBitShift() 213 auto [Val0, Val1] = unpackSExt(MI.getOperand(1).getReg()); in lowerUnpackBitShift() 216 Hi = B.buildAShr(SgprRB_S32, Val1, Amt1).getReg(0); in lowerUnpackBitShift()
|
| H A D | AMDGPURegBankCombiner.cpp | 74 Register Val0, Val1, Val2; member 361 {getAsVgpr(MatchInfo.Val0), getAsVgpr(MatchInfo.Val1), in applyMed3()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMISelDAGToDAG.cpp | 3095 SDValue Val1 = Ins1.getOperand(1); in tryInsertVectorElt() local 3097 if (Val1.getOpcode() == ISD::FP_ROUND || Val2.getOpcode() == ISD::FP_ROUND) in tryInsertVectorElt() 3101 if ((Val1.getOpcode() == ISD::EXTRACT_VECTOR_ELT || in tryInsertVectorElt() 3102 Val1.getOpcode() == ARMISD::VGETLANEu) && in tryInsertVectorElt() 3105 isa<ConstantSDNode>(Val1.getOperand(1)) && in tryInsertVectorElt() 3107 (Val1.getOperand(0).getValueType() == MVT::v8f16 || in tryInsertVectorElt() 3108 Val1.getOperand(0).getValueType() == MVT::v8i16) && in tryInsertVectorElt() 3111 unsigned ExtractLane1 = Val1.getConstantOperandVal(1); in tryInsertVectorElt() 3116 if (Val1.getOperand(0) == Val2.getOperand(0) && ExtractLane2 % 2 == 0 && in tryInsertVectorElt() 3119 ARM::ssub_0 + ExtractLane2 / 2, dl, MVT::f32, Val1.getOperand(0)); in tryInsertVectorElt() [all …]
|
| H A D | ARMBaseInstrInfo.h | 864 bool HasLowerConstantMaterializationCost(unsigned Val1, unsigned Val2,
|
| H A D | ARMBaseInstrInfo.cpp | 5510 bool llvm::HasLowerConstantMaterializationCost(unsigned Val1, unsigned Val2, in HasLowerConstantMaterializationCost() argument 5514 unsigned Cost1 = ConstantMaterializationCost(Val1, Subtarget, ForCodesize); in HasLowerConstantMaterializationCost() 5522 return ConstantMaterializationCost(Val1, Subtarget, !ForCodesize) < in HasLowerConstantMaterializationCost()
|
| H A D | ARMISelLowering.cpp | 5406 int64_t Val1 = cast<ConstantSDNode>(K1)->getSExtValue(); in LowerSaturatingConditional() local 5408 int64_t PosVal = std::max(Val1, Val2); in LowerSaturatingConditional() 5409 int64_t NegVal = std::min(Val1, Val2); in LowerSaturatingConditional() 5411 if (!((Val1 > Val2 && isLTorLE(CC1)) || (Val1 < Val2 && isLTorLE(CC2))) || in LowerSaturatingConditional() 5420 if (Val1 == ~Val2) in LowerSaturatingConditional()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonVectorCombine.cpp | 141 Value *vdeal(IRBuilderBase &Builder, Value *Val0, Value *Val1) const; 142 Value *vshuff(IRBuilderBase &Builder, Value *Val0, Value *Val1) const; 2544 Value *Val1) const -> Value * { in vdeal() 2545 assert(Val0->getType() == Val1->getType()); in vdeal() 2553 return Builder.CreateShuffleVector(Val0, Val1, Mask, "shf"); in vdeal() 2557 Value *Val1) const -> Value * { // in vshuff() 2558 assert(Val0->getType() == Val1->getType()); in vshuff() 2566 return Builder.CreateShuffleVector(Val0, Val1, Mask, "shf"); in vshuff()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
| H A D | InstrProf.h | 838 static inline double score(uint64_t Val1, uint64_t Val2, double Sum1, in score() 842 return std::min(Val1 / Sum1, Val2 / Sum2); in score()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 813 auto *Val1 = mdconst::dyn_extract<ConstantInt>(*MIBStackIter); in haveCommonPrefix() local 815 assert(Val1 && Val2); in haveCommonPrefix() 816 if (Val1->getZExtValue() != Val2->getZExtValue()) in haveCommonPrefix()
|
| /freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
| H A D | LLParser.cpp | 4359 Constant *Val0, *Val1; in parseValID() local 4374 parseGlobalTypeAndValue(Val1) || in parseValID() 4377 if (Val0->getType() != Val1->getType()) in parseValID() 4386 ID.ConstantVal = ConstantExpr::get(Opc, Val0, Val1, Flags); in parseValID() 8868 Value *Val0, *Val1; LocTy Loc0, Loc1; in parseInsertValue() local 8873 parseTypeAndValue(Val1, Loc1, PFS) || in parseInsertValue() 8883 if (IndexedType != Val1->getType()) in parseInsertValue() 8885 getTypeString(Val1->getType()) + "' instead of '" + in parseInsertValue() 8887 Inst = InsertValueInst::Create(Val0, Val1, Indices); in parseInsertValue()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXIL.td | 876 // Handle, Coord0, Coord1, Val0, Val1, Val2, Val3, Mask 1090 // Handle, Coord0, Coord1, Val0, Val1, Val2, Val3, Mask, Alignment
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTStructuralEquivalence.cpp | 2172 llvm::APSInt Val1 = (*EC1)->getInitVal(); in IsStructurallyEquivalent() local 2174 if (!llvm::APSInt::isSameValue(Val1, Val2) || in IsStructurallyEquivalent()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/ |
| H A D | ARM.cpp | 2839 Value *Val1 = Builder.CreateExtractValue(Val, 0); in EmitARMBuiltinExpr() local 2841 Val1 = Builder.CreateZExt(Val1, Int64Ty); in EmitARMBuiltinExpr() 2845 Val = Builder.CreateOr(Val, Val1); in EmitARMBuiltinExpr() 5197 Value *Val1 = Builder.CreateExtractValue(Val, 0); in EmitAArch64BuiltinExpr() local 5200 Val1 = Builder.CreateZExt(Val1, Int128Ty); in EmitAArch64BuiltinExpr() 5204 Val = Builder.CreateOr(Val, Val1); in EmitAArch64BuiltinExpr()
|