/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantFold.h | 43 ArrayRef<unsigned> Idxs); 45 ArrayRef<unsigned> Idxs); 53 ArrayRef<Value *> Idxs);
|
H A D | ConstantFold.cpp | 911 ArrayRef<unsigned> Idxs) { 913 if (Idxs.empty()) 916 if (Constant *C = Agg->getAggregateElement(Idxs[0])) 917 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1)); 924 ArrayRef<unsigned> Idxs) { 926 if (Idxs.empty()) 940 if (Idxs[0] == i) 941 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1)); 2147 static bool isInBoundsIndices(ArrayRef<IndexTy> Idxs) { argument 2149 if (Idxs 910 ConstantFoldExtractValueInstruction(Constant *Agg, ArrayRef<unsigned> Idxs) argument 922 ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val, ArrayRef<unsigned> Idxs) argument 2189 ConstantFoldGetElementPtr(Type *PointeeTy, Constant *C, bool InBounds, Optional<unsigned> InRangeIndex, ArrayRef<Value *> Idxs) argument [all...] |
H A D | AutoUpgrade.cpp | 907 uint32_t Idxs[64]; local 914 Idxs[l + i] = Idx + l; 917 Res = Builder.CreateShuffleVector(Res, Op, makeArrayRef(Idxs, NumElts)); 941 uint32_t Idxs[64]; local 948 Idxs[l + i] = Idx + l; 951 Res = Builder.CreateShuffleVector(Op, Res, makeArrayRef(Idxs, NumElts)); 2434 SmallVector<uint32_t, 16> Idxs(NumElts); 2436 Idxs[i] = ((Imm >> (i%8)) & 1) ? i + NumElts : i; 2438 Rep = Builder.CreateShuffleVector(Op0, Op1, Idxs); 2454 SmallVector<uint32_t, 8> Idxs(DstNumElt [all...] |
H A D | Constants.cpp | 2076 ArrayRef<Value *> Idxs, bool InBounds, 2086 ConstantFoldGetElementPtr(Ty, C, InBounds, InRangeIndex, Idxs)) 2090 Type *DestTy = GetElementPtrInst::getIndexedType(Ty, Idxs); 2098 else for (auto Idx : Idxs) 2110 ArgVec.reserve(1 + Idxs.size()); 2112 for (unsigned i = 0, e = Idxs.size(); i != e; ++i) { 2113 assert((!Idxs[i]->getType()->isVectorTy() || 2114 Idxs[i]->getType()->getVectorNumElements() == NumVecElts) && 2117 Constant *Idx = cast<Constant>(Idxs[i]); 2118 if (NumVecElts && !Idxs[ 2075 getGetElementPtr(Type *Ty, Constant *C, ArrayRef<Value *> Idxs, bool InBounds, Optional<unsigned> InRangeIndex, Type *OnlyIfReducedTy) argument 2251 getInsertValue(Constant *Agg, Constant *Val, ArrayRef<unsigned> Idxs, Type *OnlyIfReducedTy) argument 2275 getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, Type *OnlyIfReducedTy) argument [all...] |
H A D | Instructions.cpp | 1612 /// The Idxs pointer should point to a continuous piece of memory containing the 2099 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, argument 2107 assert(!Idxs.empty() && "InsertValueInst must have at least one index"); 2109 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == 2114 Indices.append(Idxs.begin(), Idxs.end()); 2131 void ExtractValueInst::init(ArrayRef<unsigned> Idxs, const Twine &Name) { argument 2136 assert(!Idxs.empty() && "ExtractValueInst must have at least one index"); 2138 Indices.append(Idxs.begin(), Idxs 2154 getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs) argument [all...] |
H A D | Verifier.cpp | 3310 SmallVector<Value*, 16> Idxs(GEP.idx_begin(), GEP.idx_end()); 3312 Idxs, [](Value* V) { return V->getType()->isIntOrIntVectorTy(); }), 3315 GetElementPtrInst::getIndexedType(GEP.getSourceElementType(), Idxs); 3328 for (Value *Idx : Idxs) {
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | ConstantFolding.h | 101 ArrayRef<unsigned> Idxs); 107 ArrayRef<unsigned> Idxs);
|
H A D | InstructionSimplify.h | 213 Value *SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, 221 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
|
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGVTT.cpp | 76 llvm::Value *Idxs[] = { local 83 VTable->getValueType(), VTable, Idxs, /*InBounds=*/true,
|
H A D | CGOpenMPRuntimeNVPTX.cpp | 3681 llvm::Value *Idxs[] = {llvm::ConstantInt::getNullValue(CGF.Int32Ty), 3702 Bld.CreateInBoundsGEP(GlobLVal.getPointer(CGF), Idxs); 3787 llvm::Value *Idxs[] = {llvm::ConstantInt::getNullValue(CGF.Int32Ty), 3800 Bld.CreateInBoundsGEP(GlobLVal.getPointer(CGF), Idxs); 3884 llvm::Value *Idxs[] = {llvm::ConstantInt::getNullValue(CGF.Int32Ty), 3905 Bld.CreateInBoundsGEP(GlobLVal.getPointer(CGF), Idxs); 3989 llvm::Value *Idxs[] = {llvm::ConstantInt::getNullValue(CGF.Int32Ty), 4002 Bld.CreateInBoundsGEP(GlobLVal.getPointer(CGF), Idxs);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | ArgumentPromotion.cpp | 263 Value *Idxs[2] = { local 266 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); 268 IRB.CreateGEP(STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i)); 394 Value *Idxs[2] = {ConstantInt::get(Type::getInt32Ty(F->getContext()), 0), local 398 Idxs[1] = ConstantInt::get(Type::getInt32Ty(F->getContext()), i); 400 AgTy, TheAlloca, Idxs, TheAlloca->getName() + "." + Twine(i),
|
H A D | GlobalOpt.cpp | 595 SmallVector<Constant*, 8> Idxs; 596 Idxs.push_back(NullInt); 598 Idxs.push_back(CE->getOperand(i)); 600 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs); 603 SmallVector<Value*, 8> Idxs; 604 Idxs.push_back(NullInt); 606 Idxs.push_back(GEPI->getOperand(i)); 608 NewTy, NewPtr, Idxs, GEPI->getName() + "." + Twine(ElementIdx), 741 SmallVector<Constant*, 8> Idxs; 742 Idxs [all...] |
H A D | LowerTypeTests.cpp | 639 Constant *Idxs[] = {ConstantInt::get(IntPtrTy, 0), local 642 ByteArrayConst->getType(), ByteArray, Idxs);
|
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Instructions.h | 2308 ArrayRef<unsigned> Idxs, 2312 ArrayRef<unsigned> Idxs, 2315 void init(ArrayRef<unsigned> Idxs, const Twine &NameStr); 2325 ArrayRef<unsigned> Idxs, 2329 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore); 2333 ArrayRef<unsigned> Idxs, 2336 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd); 2343 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs); 2385 ArrayRef<unsigned> Idxs, 2388 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)), 2324 Create(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr = �, Instruction *InsertBefore = nullptr) argument 2332 Create(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument 2384 ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, Instruction *InsertBefore) argument 2393 ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument 2449 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr = �, Instruction *InsertBefore = nullptr) argument 2456 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument 2520 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, Instruction *InsertBefore) argument 2531 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument [all...] |
H A D | IRBuilder.h | 1892 Value *Idxs[] = { local 1898 return Insert(Folder.CreateGetElementPtr(Ty, PC, Idxs), Name); 1900 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name); 1905 Value *Idxs[] = { local 1911 return Insert(Folder.CreateInBoundsGetElementPtr(Ty, PC, Idxs), Name); 1913 return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name); 1947 Value *Idxs[] = { local 1953 return Insert(Folder.CreateGetElementPtr(Ty, PC, Idxs), Name); 1955 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name); 1965 Value *Idxs[] local 2562 CreateExtractValue(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &Name = �) argument 2570 CreateInsertValue(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &Name = �) argument [all...] |
H A D | Constants.h | 1203 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, 1206 ArrayRef<unsigned> Idxs,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SjLjEHPrepare.cpp | 110 Value *Idxs[2] = { Zero, One }; local 112 Builder.CreateGEP(FunctionContextTy, FuncCtx, Idxs, "call_site");
|
/freebsd-11-stable/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | AsmWriterEmitter.cpp | 203 const auto &Idxs = InstIdxs[CommandIdx]; local 207 const AsmWriterInst &FirstInst = Instructions[Idxs.front()]; 215 if (std::any_of(Idxs.begin()+1, Idxs.end(),
|
H A D | CodeGenDAGPatterns.cpp | 2018 std::vector<unsigned> Idxs; local 2019 Idxs.resize(ChildAlternatives.size()); 2025 NewChildren.push_back(ChildAlternatives[i][Idxs[i]]); 2046 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) { 2047 if (++Idxs[IdxsIdx] == ChildAlternatives[IdxsIdx].size()) 2048 Idxs[IdxsIdx] = 0; 4391 std::vector<unsigned> Idxs; 4392 Idxs.resize(ChildVariants.size()); 4396 LLVM_DEBUG(if (!Idxs.empty()) { 4397 errs() << Orig->getOperator()->getName() << ": Idxs [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 501 std::vector<Constant*> Idxs; variable 509 Idxs.push_back(CI); 512 Constant *Mask = ConstantVector::get(Idxs);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 3450 // arguments. Idxs is the index within the nested struct From that we are 3452 // indices from Idxs that should be left out when inserting into the resulting 3456 SmallVectorImpl<unsigned> &Idxs, 3463 // General case, the type indexed by Idxs is a struct 3466 Idxs.push_back(i); 3468 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, 3470 Idxs.pop_back(); 3492 Value *V = FindInsertedValue(From, Idxs); 3498 return InsertValueInst::Create(To, V, makeArrayRef(Idxs).slice(IdxSkip), 3520 SmallVector<unsigned, 10> Idxs(idx_rang 3455 BuildSubAggregate(Value *From, Value* To, Type *IndexedType, SmallVectorImpl<unsigned> &Idxs, unsigned IdxSkip, Instruction *InsertBefore) argument 3598 SmallVector<unsigned, 5> Idxs; local [all...] |
H A D | InstructionSimplify.cpp | 4161 ArrayRef<unsigned> Idxs, const SimplifyQuery &Q, 4165 return ConstantFoldInsertValueInstruction(CAgg, CVal, Idxs); 4174 EV->getIndices() == Idxs) { 4188 ArrayRef<unsigned> Idxs, 4190 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Q, RecursionLimit); 4229 static Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, argument 4232 return ConstantFoldExtractValueInstruction(CAgg, Idxs); 4235 unsigned NumIdxs = Idxs.size(); 4242 Idxs.slice(0, NumCommonIdxs)) { 4252 Value *llvm::SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, argument 4160 SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const SimplifyQuery &Q, unsigned) argument 4187 SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const SimplifyQuery &Q) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | SILoadStoreOptimizer.cpp | 1459 static const unsigned Idxs[4][4] = { local 1472 Idx1 = Idxs[0][Paired.Width - 1]; 1473 Idx0 = Idxs[Paired.Width][CI.Width - 1]; 1475 Idx0 = Idxs[0][CI.Width - 1]; 1476 Idx1 = Idxs[CI.Width][Paired.Width - 1];
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonConstExtenders.cpp | 1899 const IndexList &Idxs = P.second; local 1900 if (Idxs.size() < CountThreshold) 1904 calculatePlacement(P.first, Idxs, Defs);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 2437 SmallVector<Value *, 8> Idxs(NumZeros + 1, Builder.getInt32(0)); 2439 GetElementPtrInst::Create(SrcPTy->getElementType(), Src, Idxs);
|