| /src/external/apache2/llvm/dist/llvm/lib/IR/ |
| Operator.cpp | 44 if (StructType *STy = GTI.getStructTypeOrNull()) { 45 const StructLayout *SL = DL.getStructLayout(STy); 105 StructType *STy = GTI.getStructTypeOrNull(); 115 if (STy) { 117 const StructLayout *SL = DL.getStructLayout(STy); 133 if (!ExternalAnalysis || STy || ScalableType) 165 StructType *STy = GTI.getStructTypeOrNull(); 178 if (STy) { 180 const StructLayout *SL = DL.getStructLayout(STy); 191 if (STy || ScalableType [all...] |
| TypeFinder.cpp | 103 if (StructType *STy = dyn_cast<StructType>(Ty)) 104 if (!OnlyNamed || STy->hasName()) 105 StructTypes.push_back(STy);
|
| InlineAsm.cpp | 294 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); 295 if (!STy || STy->getNumElements() != NumOutputs)
|
| ConstantFold.cpp | 370 if (StructType *STy = dyn_cast<StructType>(Ty)) 371 if (!STy->isPacked()) { 372 unsigned NumElems = STy->getNumElements(); 378 getFoldedSizeOf(STy->getElementType(0), DestTy, true, Cache); 382 getFoldedSizeOf(STy->getElementType(i), DestTy, true, Cache)) { 444 if (StructType *STy = dyn_cast<StructType>(Ty)) { 446 if (STy->isPacked()) 452 unsigned NumElems = STy->getNumElements(); 458 getFoldedAlignOf(STy->getElementType(0), DestTy, true); 461 if (MemberAlign != getFoldedAlignOf(STy->getElementType(i), DestTy, true)) [all...] |
| Type.cpp | 111 if (auto *STy = dyn_cast<StructType>(this)) { 112 unsigned NumElements = STy->getNumElements(); 114 if (!STy->getElementType(i)->isEmptyTy()) 397 if (auto *STy = dyn_cast<StructType>(Ty)) 398 if (STy->containsScalableVectorType())
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| MetaRenamer.cpp | 115 for (StructType *STy : StructTypes) { 116 if (STy->isLiteral() || STy->getName().empty()) 120 STy->setName(
|
| SCCPSolver.cpp | 368 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { 370 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 405 auto *STy = dyn_cast<StructType>(V->getType()); 406 assert(STy && "getStructLatticeValueFor() can be called only on structs"); 407 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 440 if (auto *STy = dyn_cast<StructType>(V->getType())) 441 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 447 bool isStructLatticeConstant(Function *F, StructType *STy); 495 bool SCCPInstVisitor::isStructLatticeConstant(Function *F, StructType *STy) { 496 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/ |
| Target.cpp | 134 StructType *STy = unwrap<StructType>(StructTy); 135 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 140 StructType *STy = unwrap<StructType>(StructTy); 141 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/ADT/ |
| SetVector.h | 249 template <class STy> 250 bool set_union(const STy &S) { 253 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; 264 template <class STy> 265 void set_subtract(const STy &S) { 266 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE;
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/Utils/ |
| Local.h | 55 if (StructType *STy = GTI.getStructTypeOrNull()) { 57 Size = DL.getStructLayout(STy)->getElementOffset(OpValue);
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
| SCCPSolver.h | 128 bool isStructLatticeConstant(Function *F, StructType *STy);
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/ |
| ArgumentPromotion.cpp | 144 StructType *STy = cast<StructType>(AgTy); 145 llvm::append_range(Params, STy->elements()); 146 ArgAttrVec.insert(ArgAttrVec.end(), STy->getNumElements(), 265 StructType *STy = cast<StructType>(AgTy); 268 const StructLayout *SL = DL.getStructLayout(STy); 270 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 273 IRB.CreateGEP(STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i)); 278 STy->getElementType(i), Idx, Alignment, Idx->getName() + ".val")); 395 StructType *STy = cast<StructType>(AgTy); 398 const StructLayout *SL = DL.getStructLayout(STy); [all...] |
| StripSymbols.cpp | 185 StructType *STy = StructTypes[i]; 186 if (STy->isLiteral() || STy->getName().empty()) continue; 188 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) 191 STy->setName("");
|
| GlobalOpt.cpp | 141 StructType *STy = cast<StructType>(Ty); 142 if (STy->isOpaque()) return true; 143 for (StructType::element_iterator I = STy->element_begin(), 144 E = STy->element_end(); I != E; ++I) { 535 if (StructType *STy = dyn_cast<StructType>(Ty)) 536 ElTy = STy->getElementType(ElementIdx); 552 if (StructType *STy = dyn_cast<StructType>(Ty)) { 553 const StructLayout &Layout = *DL.getStructLayout(STy); 560 if (NewAlign > DL.getABITypeAlign(STy->getElementType(ElementIdx))) 1374 auto *STy = S->getValueOperand()->getType() [all...] |
| DeadArgumentElimination.cpp | 333 else if (StructType *STy = dyn_cast<StructType>(RetTy)) 334 return STy->getNumElements(); 348 if (StructType *STy = dyn_cast<StructType>(RetTy)) 349 return STy->getElementType(Idx); 820 if (StructType *STy = dyn_cast<StructType>(RetTy)) { 823 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked());
|
| /src/external/apache2/llvm/dist/llvm/lib/FuzzMutate/ |
| Operations.cpp | 226 auto *STy = cast<StructType>(Cur[0]->getType()); 227 for (int I = 0, E = STy->getNumElements(); I < E; ++I) 228 if (STy->getTypeAtIndex(I) == V->getType()) 237 auto *STy = cast<StructType>(Cur[0]->getType()); 238 for (int I = 0, E = STy->getNumElements(); I < E; ++I) 239 makeConstantsWithType(STy->getTypeAtIndex(I), Result);
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/BPF/ |
| BTFDebug.h | 125 const DICompositeType *STy; 130 BTFTypeStruct(const DICompositeType *STy, bool IsStruct, bool HasBitField, 142 const DISubroutineType *STy; 147 BTFTypeFuncProto(const DISubroutineType *STy, uint32_t NumParams, 287 const DISubroutineType *STy, bool ForSubprog, 293 void visitStructType(const DICompositeType *STy, bool IsStruct,
|
| BTFDebug.cpp | 224 BTFTypeStruct::BTFTypeStruct(const DICompositeType *STy, bool IsStruct, 226 : STy(STy), HasBitField(HasBitField) { 228 BTFType.Size = roundupToBytes(STy->getSizeInBits()); 237 BTFType.NameOff = BDebug.addString(STy->getName()); 240 const DINodeArray Elements = STy->getElements(); 268 std::string BTFTypeStruct::getName() { return std::string(STy->getName()); } 276 const DISubroutineType *STy, uint32_t VLen, 278 : STy(STy), FuncArgNames(FuncArgNames) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Linker/ |
| IRMover.cpp | 68 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes); 105 if (auto *STy = dyn_cast<StructType>(Ty)) 106 if (STy->hasName()) 107 STy->setName(""); 217 void TypeMapTy::finishType(StructType *DTy, StructType *STy, 219 DTy->setBody(ETypes, STy->isPacked()); 221 // Steal STy's name. 222 if (STy->hasName()) { 223 SmallString<16> TmpName = STy->getName(); 224 STy->setName("") [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| Analysis.cpp | 45 if (StructType *STy = dyn_cast<StructType>(Ty)) { 46 for (auto I : llvm::enumerate(STy->elements())) { 88 if (StructType *STy = dyn_cast<StructType>(Ty)) { 92 const StructLayout *SL = Offsets ? DL.getStructLayout(STy) : nullptr; 93 for (StructType::element_iterator EB = STy->element_begin(), 95 EE = STy->element_end(); 137 if (StructType *STy = dyn_cast<StructType>(&Ty)) { 141 const StructLayout *SL = Offsets ? DL.getStructLayout(STy) : nullptr; 142 for (unsigned I = 0, E = STy->getNumElements(); I != E; ++I) { 144 computeValueLLTs(DL, *STy->getElementType(I), ValueTys, Offsets [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Sema/ |
| Overload.h | 898 QualType STy = Surrogate->getConversionType(); 899 while (STy->isPointerType() || STy->isReferenceType()) 900 STy = STy->getPointeeType(); 901 return STy->castAs<FunctionProtoType>()->getNumParams();
|
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/ |
| CoroInternal.h | 228 if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) { 229 return STy->elements().slice(1);
|
| /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/ |
| HexagonTargetObjectFile.cpp | 299 const StructType *STy = cast<const StructType>(Ty); 300 for (auto &E : STy->elements()) { 305 return (STy->getNumElements() == 0) ? 0 : SmallestElement;
|
| /src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| CGExprConstant.cpp | 492 llvm::StructType *STy = llvm::ConstantStruct::getTypeForElements( 498 if (DesiredSTy->isLayoutIdentical(STy)) 499 STy = DesiredSTy; 502 return llvm::ConstantStruct::get(STy, Packed ? PackedElems : UnpackedElems); 527 auto *STy = dyn_cast<llvm::StructType>(DesiredTy); 528 if (STy && STy->getNumElements() == 1 && 529 STy->getElementType(0) == Elems[First]->getType()) 530 Elems[First] = llvm::ConstantStruct::get(STy, Elems[First]); 1080 llvm::StructType *STy = llvm::StructType::get(VMContext, Types, false) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| SROA.cpp | 740 if (StructType *STy = GTI.getStructTypeOrNull()) { 742 const StructLayout *SL = DL.getStructLayout(STy); 1448 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { 1449 if (STy->element_begin() == STy->element_end()) 1451 ElementTy = *STy->element_begin(); 1515 StructType *STy = dyn_cast<StructType>(Ty); 1516 if (!STy) 1519 const StructLayout *SL = DL.getStructLayout(STy); 1525 Type *ElementTy = STy->getElementType(Index) [all...] |