| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | SparseBitVectorTest.cpp | 20 Vec.set(5); in TEST() 31 Vec.clear(); in TEST() 34 Vec.set(5); in TEST() 91 Vec = static_cast<SparseBitVector<> &>(Vec); in TEST() 98 EXPECT_FALSE(Vec |= Vec); in TEST() 105 EXPECT_FALSE(Vec &= Vec); in TEST() 112 EXPECT_TRUE(Vec.intersectWithComplement(Vec)); in TEST() 114 EXPECT_FALSE(Vec.intersectWithComplement(Vec)); in TEST() 119 Vec.intersectWithComplement(Vec, Vec); in TEST() 127 Vec.intersectWithComplement(Vec, Other); in TEST() [all …]
|
| H A D | PackedVectorTest.cpp | 25 Vec.resize(5); in TEST() 37 Vec.clear(); in TEST() 54 Vec = Vec2; in TEST() 58 Vec[1] = 1; in TEST() 60 Vec |= Vec2; in TEST() 68 Vec[0] = 0; in TEST() 69 Vec[0] = 1; in TEST() 70 Vec[0] = 2; in TEST() 71 Vec[0] = 3; in TEST() 86 Vec[0] = 0; in TEST() [all …]
|
| H A D | BitVectorTest.cpp | 27 TypeParam Vec; in TYPED_TEST() local 62 Vec.flip(); in TYPED_TEST() 126 Vec.set(32); in TYPED_TEST() 130 Vec.flip(); in TYPED_TEST() 131 EXPECT_EQ(Vec.size() - Count, Vec.count()); in TYPED_TEST() 133 Vec.reset(); in TYPED_TEST() 141 Vec.flip(); in TYPED_TEST() 157 Vec.flip(); in TYPED_TEST() 776 Vec[0] = Vec[1] = Vec[2] = true; in TYPED_TEST() 777 EXPECT_EQ(Vec.size(), Vec.count()); in TYPED_TEST() [all …]
|
| H A D | RangeAdapterTest.cpp | 23 std::vector<int> Vec; member in __anon8c75fdf20111::ReverseOnlyVector 30 reverse_iterator rbegin() { return Vec.rbegin(); } in rbegin() 31 reverse_iterator rend() { return Vec.rend(); } in rend() 33 const_reverse_iterator rend() const { return Vec.rend(); } in rend() 40 mutable std::vector<int> Vec; member in __anon8c75fdf20111::BidirectionalVector 50 reverse_iterator rbegin() const { return Vec.rbegin(); } in rbegin() 51 reverse_iterator rend() const { return Vec.rend(); } in rend() 57 std::vector<int> Vec; member in __anon8c75fdf20111::BidirectionalVectorConsts 71 reverse_iterator rbegin() { return Vec.rbegin(); } in rbegin() 72 reverse_iterator rend() { return Vec.rend(); } in rend() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | ArrayRef.h | 90 : Data(Vec.data()), Length(Vec.size()) { in ArrayRef() 96 : Data(Vec.data()), Length(Vec.size()) {} in ArrayRef() 116 : Data(Vec.begin() == Vec.end() ? (T*)nullptr : Vec.begin()), in ArrayRef() 138 : Data(Vec.data()), Length(Vec.size()) {} 146 : Data(Vec.data()), Length(Vec.size()) {} 494 return Vec; in makeArrayRef() 500 return Vec; in makeArrayRef() 506 return Vec; in makeArrayRef() 517 return Vec; in makeArrayRef() 522 return Vec; in makeArrayRef() [all …]
|
| H A D | PackedVector.h | 84 PackedVector &Vec; variable 89 reference(PackedVector &vec, unsigned idx) : Vec(vec), Idx(idx) {} in reference() 92 Vec.setValue(Vec.Bits, Idx, val); 97 return Vec.getValue(Vec.Bits, Idx); in T()
|
| H A D | TinyPtrVector.h | 167 if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) in empty() local 168 return Vec->empty(); in empty() 267 else if (VecTy *Vec = Val.template get<VecTy*>()) in pop_back() local 268 Vec->pop_back(); in pop_back() 275 } else if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) { in clear() local 277 Vec->clear(); in clear() 290 } else if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) { in erase() local 293 return Vec->erase(I); in erase() 306 } else if (VecTy *Vec = Val.template dyn_cast<VecTy*>()) { in erase() local 307 return Vec->erase(S, E); in erase()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | mangle-alias-template.cpp | 7 template<typename T> using Vec = vector<T>; typedef 9 template<typename T> void f(Vec<T> v); 20 Vec<double> VD; in z() 24 h<Vec>(VI); in z() 34 Vec<char> VC; in z() 35 g<Vec<char>>(VC); in z() 38 Vec<Vec<int>> VVI; in z()
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | StringTableBuilder.cpp | 95 static void multikeySort(MutableArrayRef<StringPair *> Vec, int Pos) { in multikeySort() argument 97 if (Vec.size() <= 1) in multikeySort() 103 int Pivot = charTailAt(Vec[0], Pos); in multikeySort() 105 size_t J = Vec.size(); in multikeySort() 107 int C = charTailAt(Vec[K], Pos); in multikeySort() 109 std::swap(Vec[I++], Vec[K++]); in multikeySort() 111 std::swap(Vec[--J], Vec[K]); in multikeySort() 116 multikeySort(Vec.slice(0, I), Pos); in multikeySort() 117 multikeySort(Vec.slice(J), Pos); in multikeySort() 122 Vec = Vec.slice(I, J - I); in multikeySort()
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | 2007-10-12-Crash.ll | 3 %struct.Ray = type { %struct.Vec, %struct.Vec } 5 %struct.Vec = type { double, double, double } 7 declare double @_Z9ray_traceRK3VecRK3RayRK5Scene(%struct.Vec*, %struct.Ray*, %struct.Scene*) 16 %tmp322 = bitcast %struct.Ray* %tmp3 to %struct.Vec* ; <%struct.Vec*> [#uses=1] 17 %tmp322.0 = getelementptr %struct.Vec, %struct.Vec* %tmp322, i32 0, i32 0 ; <double*> [#uses=1] 19 …%tmp57 = call double @_Z9ray_traceRK3VecRK3RayRK5Scene( %struct.Vec* null, %struct.Ray* %tmp3, %st…
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMInstrMVE.td | 318 def : Pat<(VTI.Vec (Op (VTI.Vec MQPR:$Qm), (VTI.Vec MQPR:$Qn))), 319 (VTI.Vec (Inst (VTI.Vec MQPR:$Qm), (VTI.Vec MQPR:$Qn)))>; 327 (VTI.Vec (Inst (VTI.Vec MQPR:$Qm), (VTI.Vec MQPR:$Qn), 336 (VTI.Vec (Inst (VTI.Vec MQPR:$Qm), (VTI.Vec MQPR:$Qn), 342 def : Pat<(VTI.Vec !con((PredInt (VTI.Vec MQPR:$Qm), (VTI.Vec MQPR:$Qn)), 345 (VTI.Vec (Inst (VTI.Vec MQPR:$Qm), (VTI.Vec MQPR:$Qn), 2357 (VTI.Vec (Inst (VTI.Vec MQPR:$Qm), (VTI.Vec MQPR:$Qn), 2698 (VTI.Vec (Inst (VTI.Vec MQPR:$Qd), (VTI.Vec MQPR:$Qm), 3175 (VTI.Vec (Inst (VTI.Vec MQPR:$in), (VTI.Vec MQPR:$sh), 4569 (VTI.Vec (Inst (VTI.Vec MQPR:$a), (VTI.Vec MQPR:$b), [all …]
|
| H A D | ARMInstrCDE.td | 611 def : Pat<(VTI.Vec (int_arm_cde_vcx1q_predicated timm:$coproc, 616 (VTI.Vec MQPR:$inactive)))>; 620 (VTI.Vec (CDE_VCX1A_vec p_imm:$coproc, (VTI.Vec MQPR:$acc), 624 def : Pat<(VTI.Vec (int_arm_cde_vcx2q_predicated timm:$coproc, 625 (VTI.Vec MQPR:$inactive), 631 (VTI.Vec MQPR:$inactive)))>; 633 (VTI.Vec MQPR:$acc), 636 (VTI.Vec (CDE_VCX2A_vec p_imm:$coproc, (VTI.Vec MQPR:$acc), 641 (VTI.Vec MQPR:$inactive), 651 (VTI.Vec MQPR:$acc), [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InterleavedAccess.cpp | 309 Vec[i % Stride], Vec[(i + 1) % Stride], OptimizeShuf); in reorderSubVector() 530 Vec[i] = InVec[i]; in concatSubVector() 536 Vec[i + j * 3] = Builder.CreateShuffleVector( in concatSubVector() 543 Vec[i] = Builder.CreateShuffleVector(Vec[i], Vec[i + 3], Concat); in concatSubVector() 560 Value *Vec[6], *TempVector[3]; in deinterleave8bitStride3() local 573 concatSubVector(Vec, InVec, VecElems, Builder); in deinterleave8bitStride3() 579 Vec[i] = Builder.CreateShuffleVector(Vec[i], VPShuf); in deinterleave8bitStride3() 587 Builder.CreateShuffleVector(Vec[(i + 2) % 3], Vec[i], VPAlign[0]); in deinterleave8bitStride3() 644 Value *Vec[3], *TempVector[3]; in interleave8bitStride3() local 661 Vec[2] = InVec[2]; in interleave8bitStride3() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ExpandReductions.cpp | 122 Value *Vec = II->getArgOperand(1); in expandReductions() local 124 Rdx = getOrderedReduction(Builder, Acc, Vec, getOpcode(ID), RK); in expandReductions() 127 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions() 130 Rdx = getShuffleReduction(Builder, Vec, getOpcode(ID), RK); in expandReductions() 145 Value *Vec = II->getArgOperand(0); in expandReductions() local 147 cast<FixedVectorType>(Vec->getType())->getNumElements())) in expandReductions() 150 Rdx = getShuffleReduction(Builder, Vec, getOpcode(ID), RK); in expandReductions() 157 Value *Vec = II->getArgOperand(0); in expandReductions() local 159 cast<FixedVectorType>(Vec->getType())->getNumElements()) || in expandReductions() 163 Rdx = getShuffleReduction(Builder, Vec, getOpcode(ID), RK); in expandReductions()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/modernize/ |
| H A D | use-auto-iterator.cpp | 226 std::vector<int> Vec; variable 231 int_iterator more_sugar = Vec.begin(); in sugar() 268 int_iterator I = Vec.begin(); in pointer_to_iterator() 278 for (std::vector<int>::iterator I = Vec.begin(); I != Vec.end(); ++I) { in loop() 283 for (int_iterator I = Vec.begin(), E = Vec.end(); I != E; ++I) { in loop() 298 const auto & I = Vec.begin(); in cv_qualifiers() 299 auto && I2 = Vec.begin(); in cv_qualifiers() 314 std::vector<int>::iterator I = Vec.begin(), E = Vec.end(); in declaration_lists() 319 std::vector<int>::iterator J = Vec.begin(), K; in declaration_lists()
|
| H A D | use-nodiscard.cpp | 225 class Vec { class 227 Vec(_Tp v0, _Tp v1); //!< 2-element vector constructor 229 Vec cross(const Vec &v) const; 232 operator Vec<T2, cn>() const;
|
| /llvm-project-15.0.7/llvm/unittests/Support/DynamicLibrary/ |
| H A D | PipSqueak.cpp | 13 std::vector<std::string> *Vec; member 14 Global() : Str(nullptr), Vec(nullptr) {} in Global() 17 if (Vec) in ~Global() 18 Vec->push_back(*Str); in ~Global() 44 Glb.Vec = &V; in TestOrder()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegacyLegalizerInfo.cpp | 252 int VecIdx = It - Vec.begin() - 1; in findAction() 254 LegacyLegalizeAction Action = Vec[VecIdx].second; in findAction() 265 if (Vec == SizeAndActionsVec({{1, FewerElements}})) in findAction() 277 if (!needsLegalizingToDifferentSize(Vec[i].second) && in findAction() 278 Vec[i].second != Unsupported) in findAction() 279 return {Vec[i].first, Action}; in findAction() 285 for (std::size_t i = VecIdx + 1; i < Vec.size(); ++i) in findAction() 286 if (!needsLegalizingToDifferentSize(Vec[i].second) && in findAction() 287 Vec[i].second != Unsupported) in findAction() 288 return {Vec[i].first, Action}; in findAction() [all …]
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | ARCMigrate.cpp | 26 std::vector<std::pair<std::string, std::string> > Vec; member 60 bool err = arcmt::getFileRemappings(remap->Vec, migrate_dir_path,&diagBuffer); in clang_getRemappings() 104 bool err = arcmt::getFileRemappingsFromFileList(remap->Vec, Files, in clang_getRemappingsFromFileList() 122 return static_cast<Remap *>(map)->Vec.size(); in clang_remap_getNumFiles() 130 static_cast<Remap *>(map)->Vec[index].first); in clang_remap_getFilenames() 133 static_cast<Remap *>(map)->Vec[index].second); in clang_remap_getFilenames()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/ |
| H A D | FunctionImportUtils.h | 114 SmallVector<GlobalValue *, 4> Vec; in FunctionImportGlobalProcessing() local 116 collectUsedGlobalVariables(M, Vec, /*CompilerUsed=*/false); in FunctionImportGlobalProcessing() 118 collectUsedGlobalVariables(M, Vec, /*CompilerUsed=*/true); in FunctionImportGlobalProcessing() 119 Used = {Vec.begin(), Vec.end()}; in FunctionImportGlobalProcessing()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | union-tbaa1.c | 11 void fred(unsigned Num, int Vec[2], int *Index, int Arr[4][2]) { in fred() 33 Vec[0] = Tmp[*Index][0].uh[1]; in fred() 39 Vec[1] = Tmp[*Index][1].uh[1]; in fred()
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.alias/ |
| H A D | p2.cpp | 19 template<class T> using Vec = vector<T, Alloc<T>>; typedef 20 Vec<int> v; 23 void process(Vec<T>& v) // expected-note {{previous definition is here}} in process()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | member-expr.cpp | 161 struct Vec { int size(); }; struct 162 Vec fun1(); 164 Vec *fun2(); 166 Vec fun3(int x = 0);
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | HashTable.cpp | 44 SparseBitVector<> &Vec) { in writeSparseBitVector() argument 47 int ReqBits = Vec.find_last() + 1; in writeSparseBitVector() 59 if (Vec.test(Idx)) in writeSparseBitVector()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | HashBuilderTest.cpp | 73 std::vector<int> Vec{100, 101, 102}; in TYPED_TEST() local 74 HBuilder.addRange(Vec); in TYPED_TEST() 76 EXPECT_EQ(HBuilder.final(), hashRangeWithBuilder<TypeParam>(Vec)); in TYPED_TEST() 82 std::vector<int> Vec{200, 201, 202}; in TYPED_TEST() local 83 HBuilder.addRange(Vec.begin(), Vec.end()); in TYPED_TEST() 86 hashRangeWithBuilder<TypeParam>(Vec.begin(), Vec.end())); in TYPED_TEST()
|