Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFold.h51 ConstantFoldExtractValueInstruction(Constant *Agg, ArrayRef<unsigned> Idxs);
54 ArrayRef<unsigned> Idxs);
64 ArrayRef<Value *> Idxs);
H A DIRBuilder.h1964 Value *Idxs[] = { variable
1969 if (auto *V = Folder.FoldGEP(Ty, Ptr, Idxs, NWFlags))
1972 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs, NWFlags), Name);
1977 Value *Idxs[] = { variable
1982 if (auto *V = Folder.FoldGEP(Ty, Ptr, Idxs, GEPNoWrapFlags::inBounds()))
1985 return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idxs), Name);
2010 Value *Idxs[] = { variable
2015 if (auto *V = Folder.FoldGEP(Ty, Ptr, Idxs, GEPNoWrapFlags::none()))
2018 return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name);
2023 Value *Idxs[] = { variable
[all …]
H A DInstructions.h2444 inline ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
2447 LLVM_ABI void init(ArrayRef<unsigned> Idxs, const Twine &NameStr);
2456 static ExtractValueInst *Create(Value *Agg, ArrayRef<unsigned> Idxs,
2460 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
2467 LLVM_ABI static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
2508 ExtractValueInst::ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
2511 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
2513 init(Idxs, NameStr);
2534 inline InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
2543 LLVM_ABI void init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp506 ArrayRef<unsigned> Idxs) { in ConstantFoldExtractValueInstruction() argument
508 if (Idxs.empty()) in ConstantFoldExtractValueInstruction()
511 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
512 return ConstantFoldExtractValueInstruction(C, Idxs.slice(1)); in ConstantFoldExtractValueInstruction()
519 ArrayRef<unsigned> Idxs) { in ConstantFoldInsertValueInstruction() argument
521 if (Idxs.empty()) in ConstantFoldInsertValueInstruction()
535 if (Idxs[0] == i) in ConstantFoldInsertValueInstruction()
536 C = ConstantFoldInsertValueInstruction(C, Val, Idxs.slice(1)); in ConstantFoldInsertValueInstruction()
1317 ArrayRef<Value *> Idxs) { in ConstantFoldGetElementPtr() argument
1318 if (Idxs.empty()) return C; in ConstantFoldGetElementPtr()
[all …]
H A DAutoUpgrade.cpp1695 int Idxs[64]; in upgradeX86PSLLDQIntrinsics() local
1702 Idxs[l + i] = Idx + l; in upgradeX86PSLLDQIntrinsics()
1705 Res = Builder.CreateShuffleVector(Res, Op, ArrayRef(Idxs, NumElts)); in upgradeX86PSLLDQIntrinsics()
1729 int Idxs[64]; in upgradeX86PSRLDQIntrinsics() local
1736 Idxs[l + i] = Idx + l; in upgradeX86PSRLDQIntrinsics()
1739 Res = Builder.CreateShuffleVector(Op, Res, ArrayRef(Idxs, NumElts)); in upgradeX86PSRLDQIntrinsics()
3226 SmallVector<int, 16> Idxs(NumElts); in upgradeX86IntrinsicCall() local
3228 Idxs[i] = ((Imm >> (i % 8)) & 1) ? i + NumElts : i; in upgradeX86IntrinsicCall()
3230 Rep = Builder.CreateShuffleVector(Op0, Op1, Idxs); in upgradeX86IntrinsicCall()
3247 SmallVector<int, 8> Idxs(DstNumElts); in upgradeX86IntrinsicCall() local
[all …]
H A DInstructions.cpp2508 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument
2516 assert(!Idxs.empty() && "InsertValueInst must have at least one index"); in init()
2518 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init()
2523 Indices.append(Idxs.begin(), Idxs.end()); in init()
2539 void ExtractValueInst::init(ArrayRef<unsigned> Idxs, const Twine &Name) { in init() argument
2544 assert(!Idxs.empty() && "ExtractValueInst must have at least one index"); in init()
2546 Indices.append(Idxs.begin(), Idxs.end()); in init()
2564 ArrayRef<unsigned> Idxs) { in getIndexedType() argument
2565 for (unsigned Index : Idxs) { in getIndexedType()
H A DConstants.cpp2495 ArrayRef<Value *> Idxs, in getGetElementPtr() argument
2502 if (Constant *FC = ConstantFoldGetElementPtr(Ty, C, InRange, Idxs)) in getGetElementPtr()
2505 assert(GetElementPtrInst::getIndexedType(Ty, Idxs) && "GEP indices invalid!"); in getGetElementPtr()
2509 Type *ReqTy = GetElementPtrInst::getGEPReturnType(C, Idxs); in getGetElementPtr()
2519 ArgVec.reserve(1 + Idxs.size()); in getGetElementPtr()
2521 auto GTI = gep_type_begin(Ty, Idxs), GTE = gep_type_end(Ty, Idxs); in getGetElementPtr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp275 using Idxs = std::vector<unsigned>; in initialize() typedef
276 Idxs Idxs2Or12 ((BitSize <= 32) ? Idxs({1, 2}) : Idxs({2})); in initialize()
277 Idxs Idxs34Or1234((BitSize <= 32) ? Idxs({1, 2, 3, 4}) : Idxs({3, 4})); in initialize()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DConstantFolding.h143 ArrayRef<unsigned> Idxs);
149 ArrayRef<unsigned> Idxs);
H A DInstructionSimplify.h178 ArrayRef<unsigned> Idxs,
186 LLVM_ABI Value *simplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGVTT.cpp74 llvm::Value *Idxs[] = { in EmitVTTDefinition() local
92 VTable->getValueType(), VTable, Idxs, /*InBounds=*/true, InRange); in EmitVTTDefinition()
/freebsd/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp491 std::vector<Constant*> Idxs; in Act() local
499 Idxs.push_back(CI); in Act()
502 Constant *Mask = ConstantVector::get(Idxs); in Act()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSjLjEHPrepare.cpp137 Value *Idxs[2] = { Zero, One }; in insertCallSiteStore() local
139 Builder.CreateGEP(FunctionContextTy, FuncCtx, Idxs, "call_site"); in insertCallSiteStore()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DCodeGenDAGPatterns.cpp2186 std::vector<unsigned> Idxs(ChildAlternatives.size()); in InlinePatternFragments() local
2193 NewChildren.push_back(ChildAlternatives[i][Idxs[i]]); in InlinePatternFragments()
2215 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) { in InlinePatternFragments()
2216 if (++Idxs[IdxsIdx] == ChildAlternatives[IdxsIdx].size()) in InlinePatternFragments()
2217 Idxs[IdxsIdx] = 0; in InlinePatternFragments()
4568 std::vector<unsigned> Idxs(ChildVariants.size()); in CombineChildVariants() local
4572 LLVM_DEBUG(if (!Idxs.empty()) { in CombineChildVariants()
4574 for (unsigned Idx : Idxs) { in CombineChildVariants()
4584 NewChildren.push_back(ChildVariants[i][Idxs[i]]); in CombineChildVariants()
4613 for (IdxsIdx = Idxs.size() - 1; IdxsIdx >= 0; --IdxsIdx) { in CombineChildVariants()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp1527 Value *ExtractValueInst::create(Value *Agg, ArrayRef<unsigned> Idxs, in create() argument
1531 llvm::Value *NewV = Builder.CreateExtractValue(Agg->Val, Idxs, Name); in create()
1538 Type *ExtractValueInst::getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs) { in getIndexedType() argument
1539 auto *LLVMTy = llvm::ExtractValueInst::getIndexedType(Agg->LLVMTy, Idxs); in getIndexedType()
1543 Value *InsertValueInst::create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in create() argument
1547 llvm::Value *NewV = Builder.CreateInsertValue(Agg->Val, Val->Val, Idxs, Name); in create()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DAsmWriterEmitter.cpp210 const auto &Idxs = InstIdxs[CommandIdx]; in FindUniqueOperandCommands() local
214 const AsmWriterInst &FirstInst = Instructions[Idxs.front()]; in FindUniqueOperandCommands()
222 if (any_of(drop_begin(Idxs), [&](unsigned Idx) { in FindUniqueOperandCommands()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp810 SmallVector<Constant*, 8> Idxs; in OptimizeAwayTrappingUsesOfValue() local
811 Idxs.reserve(GEPI->getNumOperands()-1); in OptimizeAwayTrappingUsesOfValue()
815 Idxs.push_back(C); in OptimizeAwayTrappingUsesOfValue()
818 if (Idxs.size() == GEPI->getNumOperands()-1) in OptimizeAwayTrappingUsesOfValue()
821 NewV, Idxs)); in OptimizeAwayTrappingUsesOfValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSILoadStoreOptimizer.cpp1893 static const unsigned Idxs[5][4] = { in getSubRegIdxs() local
1905 Idx1 = Idxs[0][Paired.Width - 1]; in getSubRegIdxs()
1906 Idx0 = Idxs[Paired.Width][CI.Width - 1]; in getSubRegIdxs()
1908 Idx0 = Idxs[0][CI.Width - 1]; in getSubRegIdxs()
1909 Idx1 = Idxs[CI.Width][Paired.Width - 1]; in getSubRegIdxs()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DX86.cpp648 llvm::Value *Idxs[] = {ConstantInt::get(Int32Ty, 0), in EmitX86CpuIs() local
650 llvm::Value *CpuValue = Builder.CreateInBoundsGEP(STy, CpuModel, Idxs); in EmitX86CpuIs()
690 Value *Idxs[] = {Builder.getInt32(0), Builder.getInt32(3), in EmitX86CpuSupports() local
692 Value *CpuFeatures = Builder.CreateInBoundsGEP(STy, CpuModel, Idxs); in EmitX86CpuSupports()
711 Value *Idxs[] = {Builder.getInt32(0), Builder.getInt32(i - 1)}; in EmitX86CpuSupports() local
713 Int32Ty, Builder.CreateInBoundsGEP(ATy, CpuFeatures2, Idxs), in EmitX86CpuSupports()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp6177 SmallVectorImpl<unsigned> &Idxs, in BuildSubAggregate() argument
6187 Idxs.push_back(i); in BuildSubAggregate()
6189 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, in BuildSubAggregate()
6191 Idxs.pop_back(); in BuildSubAggregate()
6213 Value *V = FindInsertedValue(From, Idxs); in BuildSubAggregate()
6219 return InsertValueInst::Create(To, V, ArrayRef(Idxs).slice(IdxSkip), "tmp", in BuildSubAggregate()
6240 SmallVector<unsigned, 10> Idxs(idx_range); in BuildSubAggregate() local
6241 unsigned IdxSkip = Idxs.size(); in BuildSubAggregate()
6243 return BuildSubAggregate(From, To, IndexedType, Idxs, IdxSkip, InsertBefore); in BuildSubAggregate()
6318 SmallVector<unsigned, 5> Idxs; in FindInsertedValue() local
[all …]
H A DInstructionSimplify.cpp5147 ArrayRef<unsigned> Idxs, in simplifyInsertValueInst() argument
5151 return ConstantFoldInsertValueInstruction(CAgg, CVal, Idxs); in simplifyInsertValueInst()
5162 EV->getIndices() == Idxs) { in simplifyInsertValueInst()
5179 ArrayRef<unsigned> Idxs, in simplifyInsertValueInst() argument
5181 return ::simplifyInsertValueInst(Agg, Val, Idxs, Q, RecursionLimit); in simplifyInsertValueInst()
5225 static Value *simplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, in simplifyExtractValueInst() argument
5228 return ConstantFoldExtractValueInstruction(CAgg, Idxs); in simplifyExtractValueInst()
5231 unsigned NumIdxs = Idxs.size(); in simplifyExtractValueInst()
5238 Idxs.slice(0, NumCommonIdxs)) { in simplifyExtractValueInst()
5248 Value *llvm::simplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, in simplifyExtractValueInst() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp1902 const IndexList &Idxs = P.second; in replaceExtenders() local
1903 if (Idxs.size() < CountThreshold) in replaceExtenders()
1907 calculatePlacement(P.first, Idxs, Defs); in replaceExtenders()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp2549 SmallVector<unsigned> Idxs; in parseFunDeclarations() local
2553 Idxs.push_back(OpIdx); in parseFunDeclarations()
2555 if (!Idxs.size()) in parseFunDeclarations()
2564 for (unsigned Idx : Idxs) { in parseFunDeclarations()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/
H A DCoverageMapping.cpp375 for (const auto &Idxs : Indices) in TVIdxBuilder() local
376 for (auto Idx : Idxs) in TVIdxBuilder()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DInstruction.h970 LLVM_ABI static Value *create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
1115 LLVM_ABI static Value *create(Value *Agg, ArrayRef<unsigned> Idxs,
1127 LLVM_ABI static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);

12