Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.enum/
H A Dcheck_bitmask_types.h10 template <class EnumType, EnumType Val1, EnumType Val2,
13 UT UVal2 = static_cast<UT>(Val2),
22 static_assert(Val1 != Zero && Val2 != Zero, "");
23 static_assert(Val1 != Val2, "");
31 ASSERT_SAME_TYPE(EnumType, decltype(Val1 & Val2)); in check()
32 ASSERT_SAME_TYPE(EnumType, decltype(Val1 | Val2)); in check()
33 ASSERT_SAME_TYPE(EnumType, decltype(Val1 ^ Val2)); in check()
35 ASSERT_SAME_TYPE(EnumType&, decltype(ValRef &= Val2)); in check()
55 EnumType& eref = (e &= Val2); in check()
61 EnumType& eref = (e |= Val2); in check()
[all …]
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DPhiValuesTest.cpp48 Phi1->addIncoming(Val2, Else); in TEST()
60 EXPECT_TRUE(Vals.count(Val2)); in TEST()
72 EXPECT_TRUE(Vals.count(Val2)); in TEST()
84 EXPECT_TRUE(Vals.count(Val2)); in TEST()
123 Phi2->addIncoming(Val2, If1); in TEST()
136 EXPECT_TRUE(Vals.count(Val2)); in TEST()
139 EXPECT_TRUE(Vals.count(Val2)); in TEST()
144 EXPECT_TRUE(Vals.count(Val2)); in TEST()
153 EXPECT_TRUE(Vals.count(Val2)); in TEST()
156 EXPECT_TRUE(Vals.count(Val2)); in TEST()
[all …]
/llvm-project-15.0.7/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;
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Deasily-swappable-parameters-relatedness.cpp167 int Val2 = J.I; in compare1() local
168 return Val1 < Val2; in compare1()
173 int Val2 = T2.g(2, 3); in compare2() local
174 return Val1 < Val2; in compare2()
179 int Val2 = T2.g(1, 2); in compare3() local
180 return Val1 < Val2; in compare3()
H A Deasily-swappable-parameters-prefixsuffixname.cpp27 void test3(int Val1, int Val2) {} // NO-WARN. in test3() argument
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DAArch64SelectionDAGTest.cpp301 SDValue Val2 = DAG->getConstant(3, Loc, VecVT); in TEST_F() local
345 SDValue Val2 = DAG->getConstant(3, Loc, VecVT); in TEST_F() local
384 SDValue Val2 = DAG->getConstant(3, Loc, VecVT); in TEST_F() local
449 Pattern0123.push_back(Val2); in TEST_F()
456 Pattern022.append(2, Val2); in TEST_F()
458 Pattern022.append(2, Val2); in TEST_F()
460 Pattern022.append(2, Val2); in TEST_F()
462 Pattern022.append(2, Val2); in TEST_F()
464 Pattern022.append(2, Val2); in TEST_F()
509 EXPECT_EQ(Seq0123[2], Val2); in TEST_F()
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Denum-scoped.cpp24 Val2 = 1 enumerator
27 E3 v4 = Val2;
28 E1 v5 = Val2; // expected-error{{cannot initialize a variable}}
32 int x2 = Val2;
34 int a1[Val2];
43 int* p1 = new int[Val2];
H A Denum.cpp5 Val2 enumerator
15 float& fr = enumerator_type(Val2); in f()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp51 static bool areEquivalentIndirectionValues(Value *Val1, Value *Val2) { in areEquivalentIndirectionValues() argument
53 auto *IndVal2 = cast<ReferenceValue>(Val2); in areEquivalentIndirectionValues()
57 auto *IndVal2 = cast<PointerValue>(Val2); in areEquivalentIndirectionValues()
65 const Environment &Env1, Value *Val2, in equivalentValues() argument
68 return Val1 == Val2 || areEquivalentIndirectionValues(Val1, Val2) || in equivalentValues()
69 Model.compareEquivalent(Type, *Val1, Env1, *Val2, Env2); in equivalentValues()
77 const Environment &Env1, Value *Val2, in mergeDistinctValues() argument
87 auto *Expr2 = cast<BoolValue>(Val2); in mergeDistinctValues()
98 if (areEquivalentIndirectionValues(Val1, Val2)) { in mergeDistinctValues()
105 if (Model.merge(Type, *Val1, Env1, *Val2, Env2, *MergedVal, MergedEnv)) in mergeDistinctValues()
/llvm-project-15.0.7/llvm/test/TableGen/
H A Dgeneric-tables.td23 // CHECK: const AEntry *lookupATableByValues(uint8_t Val1, uint16_t Val2);
33 // CHECK: const AEntry *lookupATableByValues(uint8_t Val1, uint16_t Val2) {
40 bits<10> Val2 = val2;
50 let Fields = ["Str", "Val1", "Val2"];
52 let PrimaryKey = ["Val1", "Val2"];
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Denum-argument.cpp19 Val2, enumerator
20 SumOfValues = Val1 + Val2
H A Dinstantiate-c99.cpp50 typename Val1, typename Val2>
52 void f(Val1 val1, Val2 val2) { in f()
H A Dinstantiate-expr-4.cpp248 template<typename T, typename Val1, typename Val2>
250 void f(Val1 val1, Val2 val2) { in f()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGAtomic.cpp376 Address Val1, Address Val2, in emitAtomicCmpXchg() argument
383 llvm::Value *Desired = CGF.Builder.CreateLoad(Val2); in emitAtomicCmpXchg()
426 Address Val1, Address Val2, in emitAtomicCmpXchgFailureSet() argument
482 emitAtomicCmpXchg(CGF, E, IsWeak, Dest, Ptr, Val1, Val2, in emitAtomicCmpXchgFailureSet()
522 Address Ptr, Address Val1, Address Val2, in EmitAtomicOp() argument
724 Address Ptr, Address Val1, Address Val2, in EmitAtomicOp() argument
814 Address Val2 = Address::invalid(); in EmitAtomicExpr() local
888 Val2 = EmitPointerWithAlignment(E->getVal2()); in EmitAtomicExpr()
890 Val2 = EmitValToTemp(*this, E->getVal2()); in EmitAtomicExpr()
977 if (Val2.isValid()) in EmitAtomicExpr()
[all …]
/llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.h58 const Environment &Env1, const Value &Val2,
62 const Value &Val2, const Environment &Env2, Value &MergedVal,
/llvm-project-15.0.7/llvm/unittests/IR/
H A DModuleTest.cpp83 Metadata *Val2 = MDString::get(Context, "Val2"); in TEST() local
87 M.setModuleFlag(Module::ModFlagBehavior::Error, Key, Val2); in TEST()
88 EXPECT_EQ(Val2, M.getModuleFlag(Key)); in TEST()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DGTestChecker.cpp116 static ProgramStateRef assumeValuesEqual(SVal Val1, SVal Val2,
270 ProgramStateRef GTestChecker::assumeValuesEqual(SVal Val1, SVal Val2, in assumeValuesEqual() argument
274 auto DVal2 = Val2.getAs<DefinedOrUnknownSVal>(); in assumeValuesEqual()
H A DMismatchedIteratorChecker.cpp40 const SVal &Val2, CheckerContext &C,
280 const SVal &Val2, in reportBug() argument
286 R->markInteresting(Val2); in reportBug()
/llvm-project-15.0.7/clang/test/CoverageMapping/Inputs/
H A Dmd.def3 HANDLE_MD(Val2)
/llvm-project-15.0.7/llvm/docs/TableGen/
H A DBackEnds.rst737 let Fields = ["Str", "Val1", "Val2"];
738 let PrimaryKey = ["Val1", "Val2"];
745 bits<10> Val2 = val2;
761 const AEntry *lookupATableByValues(uint8_t Val1, uint16_t Val2);
776 uint16_t Val2;
778 KeyType Key = { Val1, Val2 };
786 if (LHS.Val2 < RHS.Val2)
788 if (LHS.Val2 > RHS.Val2)
795 Key.Val2 != Idx->Val2)
883 let Fields = ["Str", "Val1", "Val2"];
[all …]
/llvm-project-15.0.7/clang/test/CoverageMapping/
H A Dmd.cpp7 Val2 enumerator
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp1530 APFloat Val2 = APFloat(Val); in isValueValidForType() local
1538 if (&Val2.getSemantics() == &APFloat::IEEEhalf()) in isValueValidForType()
1544 if (&Val2.getSemantics() == &APFloat::BFloat()) in isValueValidForType()
1550 if (&Val2.getSemantics() == &APFloat::IEEEsingle()) in isValueValidForType()
1556 if (&Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType()
1557 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1559 &Val2.getSemantics() == &APFloat::IEEEdouble()) in isValueValidForType()
1566 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1572 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1575 &Val2.getSemantics() == &APFloat::IEEEquad(); in isValueValidForType()
[all …]
/llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowEnvironment.h75 const Environment &Env1, const Value &Val2, in compareEquivalent() argument
104 const Environment &Env1, const Value &Val2, in merge() argument
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysisTest.cpp337 const Environment &Env1, const Value &Val2, in compareEquivalent() argument
348 auto *IsSet2 = cast_or_null<BoolValue>(Val2.getProperty("is_set")); in compareEquivalent()
358 const Value &Val2, const Environment &Env2, Value &MergedVal, in merge() argument
369 auto *IsSet2 = cast_or_null<BoolValue>(Val2.getProperty("is_set")); in merge()
491 const Environment &Env1, const Value &Val2, in compareEquivalent() argument
498 return Val1.getProperty("has_value") == Val2.getProperty("has_value"); in compareEquivalent()
502 const Value &Val2, const Environment &Env2, Value &MergedVal, in merge() argument
513 auto *HasValue2 = cast_or_null<BoolValue>(Val2.getProperty("has_value")); in merge()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp720 const Value &Val2, in compareEquivalent() argument
722 return isNonEmptyOptional(Val1, Env1) == isNonEmptyOptional(Val2, Env2); in compareEquivalent()
727 const Value &Val2, in merge() argument
735 if (isNonEmptyOptional(Val1, Env1) && isNonEmptyOptional(Val2, Env2)) in merge()
737 else if (isEmptyOptional(Val1, Env1) && isEmptyOptional(Val2, Env2)) in merge()

12