Home
last modified time | relevance | path

Searched refs:STy (Results 1 – 25 of 65) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DIPConstantPropagation.cpp171 StructType *STy = dyn_cast<StructType>(F.getReturnType()); in PropagateConstantReturn() local
172 if (STy) in PropagateConstantReturn()
173 for (unsigned i = 0, e = STy->getNumElements(); i < e; ++i) in PropagateConstantReturn()
174 RetVals.push_back(UndefValue::get(STy->getElementType(i))); in PropagateConstantReturn()
189 if (!STy) in PropagateConstantReturn()
239 if (!STy) { in PropagateConstantReturn()
DArgumentPromotion.cpp145 StructType *STy = cast<StructType>(AgTy); in doPromotion() local
146 Params.insert(Params.end(), STy->element_begin(), STy->element_end()); in doPromotion()
147 ArgAttrVec.insert(ArgAttrVec.end(), STy->getNumElements(), in doPromotion()
262 StructType *STy = cast<StructType>(AgTy); in doPromotion() local
265 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in doPromotion()
268 IRB.CreateGEP(STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i)); in doPromotion()
270 Args.push_back(IRB.CreateLoad(STy->getElementType(i), Idx, in doPromotion()
393 StructType *STy = cast<StructType>(AgTy); in doPromotion() local
397 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in doPromotion()
958 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in promoteArguments() local
[all …]
DStripSymbols.cpp180 StructType *STy = StructTypes[i]; in StripTypeNames() local
181 if (STy->isLiteral() || STy->getName().empty()) continue; in StripTypeNames()
183 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) in StripTypeNames()
186 STy->setName(""); in StripTypeNames()
DGlobalOpt.cpp134 SequentialType *STy = cast<SequentialType>(Ty); in isLeakCheckerRoot() local
135 Types.push_back(STy->getElementType()); in isLeakCheckerRoot()
139 StructType *STy = cast<StructType>(Ty); in isLeakCheckerRoot() local
140 if (STy->isOpaque()) return true; in isLeakCheckerRoot()
141 for (StructType::element_iterator I = STy->element_begin(), in isLeakCheckerRoot()
142 E = STy->element_end(); I != E; ++I) { in isLeakCheckerRoot()
441 } else if (SequentialType *STy = dyn_cast<SequentialType>(Init->getType())) { in CanDoGlobalSRA() local
442 if (STy->getNumElements() > 16 && GV->hasNUsesOrMore(16)) in CanDoGlobalSRA()
510 if (StructType *STy = dyn_cast<StructType>(Ty)) in SRAGlobal() local
511 ElTy = STy->getElementType(ElementIdx); in SRAGlobal()
[all …]
DDeadArgumentElimination.cpp332 else if (StructType *STy = dyn_cast<StructType>(RetTy)) in NumRetVals() local
333 return STy->getNumElements(); in NumRetVals()
347 if (StructType *STy = dyn_cast<StructType>(RetTy)) in getRetComponentType() local
348 return STy->getElementType(Idx); in getRetComponentType()
815 if (StructType *STy = dyn_cast<StructType>(RetTy)) { in RemoveDeadStuffFromFunction() local
818 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); in RemoveDeadStuffFromFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DSetVector.h244 template <class STy>
245 bool set_union(const STy &S) { in set_union()
248 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_union()
259 template <class STy>
260 void set_subtract(const STy &S) { in set_subtract()
261 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_subtract()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DMetaRenamer.cpp116 for (StructType *STy : StructTypes) { in runOnModule()
117 if (STy->isLiteral() || STy->getName().empty()) continue; in runOnModule()
120 STy->setName((Twine("struct.") + in runOnModule()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Linker/
DIRMover.cpp67 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
104 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping() local
105 if (STy->hasName()) in addTypeMapping()
106 STy->setName(""); in addTypeMapping()
214 void TypeMapTy::finishType(StructType *DTy, StructType *STy, in finishType() argument
216 DTy->setBody(ETypes, STy->isPacked()); in finishType()
219 if (STy->hasName()) { in finishType()
220 SmallString<16> TmpName = STy->getName(); in finishType()
221 STy->setName(""); in finishType()
243 StructType *STy = cast<StructType>(Ty); in get() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/
DTarget.cpp132 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() local
133 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); in LLVMElementAtOffset()
138 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement() local
139 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element); in LLVMOffsetOfElement()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstantFold.cpp118 if (StructType *STy = dyn_cast<StructType>(ElTy)) { in FoldBitCast() local
119 if (STy->getNumElements() == 0) break; in FoldBitCast()
120 ElTy = STy->getElementType(0); in FoldBitCast()
122 } else if (SequentialType *STy = in FoldBitCast() local
124 ElTy = STy->getElementType(); in FoldBitCast()
360 if (StructType *STy = dyn_cast<StructType>(Ty)) in getFoldedSizeOf() local
361 if (!STy->isPacked()) { in getFoldedSizeOf()
362 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf()
368 getFoldedSizeOf(STy->getElementType(0), DestTy, true); in getFoldedSizeOf()
372 getFoldedSizeOf(STy->getElementType(i), DestTy, true)) { in getFoldedSizeOf()
[all …]
DType.cpp104 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy() local
105 unsigned NumElements = STy->getNumElements(); in isEmptyTy()
107 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy()
537 if (auto *STy = dyn_cast<StructType>(this)) { in getTypeAtIndex() local
541 return STy->getElementType(Idx); in getTypeAtIndex()
548 if (auto *STy = dyn_cast<StructType>(this)) { in getTypeAtIndex() local
550 return STy->getElementType(Idx); in getTypeAtIndex()
557 if (auto *STy = dyn_cast<StructType>(this)) { in indexValid() local
566 return CU && CU->getZExtValue() < STy->getNumElements(); in indexValid()
574 if (auto *STy = dyn_cast<StructType>(this)) in indexValid() local
[all …]
DTypeFinder.cpp103 if (StructType *STy = dyn_cast<StructType>(Ty)) in incorporateType() local
104 if (!OnlyNamed || STy->hasName()) in incorporateType()
105 StructTypes.push_back(STy); in incorporateType()
DOperator.cpp49 if (StructType *STy = GTI.getStructTypeOrNull()) { in accumulateConstantOffset() local
51 const StructLayout *SL = DL.getStructLayout(STy); in accumulateConstantOffset()
DInlineAsm.cpp293 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); in Verify()
294 if (!STy || STy->getNumElements() != NumOutputs) in Verify()
DAsmWriter.cpp543 StructType *STy = *I; in incorporateTypes() local
546 if (STy->isLiteral()) in incorporateTypes()
549 if (STy->getName().empty()) in incorporateTypes()
550 Type2Number[STy] = NextNumber++; in incorporateTypes()
552 *NextToUse++ = STy; in incorporateTypes()
595 StructType *STy = cast<StructType>(Ty); in print() local
597 if (STy->isLiteral()) in print()
598 return printStructBody(STy, OS); in print()
600 if (!STy->getName().empty()) in print()
601 return PrintLLVMName(OS, STy->getName(), LocalPrefix); in print()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DAnalysis.cpp44 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeLinearIndex() local
45 for (StructType::element_iterator EB = STy->element_begin(), in ComputeLinearIndex()
47 EE = STy->element_end(); in ComputeLinearIndex()
89 if (StructType *STy = dyn_cast<StructType>(Ty)) { in ComputeValueVTs() local
90 const StructLayout *SL = DL.getStructLayout(STy); in ComputeValueVTs()
91 for (StructType::element_iterator EB = STy->element_begin(), in ComputeValueVTs()
93 EE = STy->element_end(); in ComputeValueVTs()
132 if (StructType *STy = dyn_cast<StructType>(&Ty)) { in computeValueLLTs() local
133 const StructLayout *SL = DL.getStructLayout(STy); in computeValueLLTs()
134 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) in computeValueLLTs()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/BPF/
DBTFDebug.cpp218 BTFTypeStruct::BTFTypeStruct(const DICompositeType *STy, bool IsStruct, in BTFTypeStruct() argument
220 : STy(STy), HasBitField(HasBitField) { in BTFTypeStruct()
222 BTFType.Size = roundupToBytes(STy->getSizeInBits()); in BTFTypeStruct()
231 BTFType.NameOff = BDebug.addString(STy->getName()); in completeType()
234 const DINodeArray Elements = STy->getElements(); in completeType()
262 std::string BTFTypeStruct::getName() { return STy->getName(); } in getName()
270 const DISubroutineType *STy, uint32_t VLen, in BTFTypeFuncProto() argument
272 : STy(STy), FuncArgNames(FuncArgNames) { in BTFTypeFuncProto()
282 DITypeRefArray Elements = STy->getTypeArray(); in completeType()
423 const DISubroutineType *STy, bool ForSubprog, in visitSubroutineType() argument
[all …]
DBTFDebug.h119 const DICompositeType *STy; variable
124 BTFTypeStruct(const DICompositeType *STy, bool IsStruct, bool HasBitField,
136 const DISubroutineType *STy; variable
141 BTFTypeFuncProto(const DISubroutineType *STy, uint32_t NumParams,
272 const DISubroutineType *STy, bool ForSubprog,
278 void visitStructType(const DICompositeType *STy, bool IsStruct,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSCCP.cpp306 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in AddTrackedFunction() local
308 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in AddTrackedFunction()
357 auto *STy = dyn_cast<StructType>(V->getType()); in getStructLatticeValueFor() local
358 assert(STy && "getStructLatticeValueFor() can be called only on structs"); in getStructLatticeValueFor()
359 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in getStructLatticeValueFor()
402 if (auto *STy = dyn_cast<StructType>(V->getType())) in markOverdefined() local
403 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in markOverdefined()
412 bool isStructLatticeConstant(Function *F, StructType *STy) { in isStructLatticeConstant() argument
413 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in isStructLatticeConstant()
853 if (auto *STy = dyn_cast<StructType>(ResultOp->getType())) in visitReturnInst() local
[all …]
DSROA.cpp746 if (StructType *STy = GTI.getStructTypeOrNull()) { in visitGetElementPtrInst() local
748 const StructLayout *SL = DL.getStructLayout(STy); in visitGetElementPtrInst()
1445 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { in getNaturalGEPWithType() local
1446 if (STy->element_begin() == STy->element_end()) in getNaturalGEPWithType()
1448 ElementTy = *STy->element_begin(); in getNaturalGEPWithType()
1510 StructType *STy = dyn_cast<StructType>(Ty); in getNaturalGEPRecursively() local
1511 if (!STy) in getNaturalGEPRecursively()
1514 const StructLayout *SL = DL.getStructLayout(STy); in getNaturalGEPRecursively()
1520 Type *ElementTy = STy->getElementType(Index); in getNaturalGEPRecursively()
1859 Type *STy = SI->getValueOperand()->getType(); in isVectorPromotionViableForSlice() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DGetElementPtrTypeIterator.h78 if (auto *STy = dyn_cast<SequentialType>(Ty)) { variable
79 CurTy = STy->getElementType();
80 NumElements = STy->getNumElements();
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/
DOperations.cpp226 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() local
227 for (int I = 0, E = STy->getNumElements(); I < E; ++I) in matchScalarInAggregate()
228 if (STy->getTypeAtIndex(I) == V->getType()) in matchScalarInAggregate()
237 auto *STy = cast<StructType>(Cur[0]->getType()); in matchScalarInAggregate() local
238 for (int I = 0, E = STy->getNumElements(); I < E; ++I) in matchScalarInAggregate()
239 makeConstantsWithType(STy->getTypeAtIndex(I), Result); in matchScalarInAggregate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/Utils/
DLocal.h54 if (StructType *STy = GTI.getStructTypeOrNull()) { variable
56 Size = DL.getStructLayout(STy)->getElementOffset(OpValue);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroInternal.h178 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { in getRetconResultTypes() local
179 return STy->elements().slice(1); in getRetconResultTypes()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonTargetObjectFile.cpp299 const StructType *STy = cast<const StructType>(Ty); in getSmallestAddressableSize() local
300 for (auto &E : STy->elements()) { in getSmallestAddressableSize()
305 return (STy->getNumElements() == 0) ? 0 : SmallestElement; in getSmallestAddressableSize()

123