/external/llvm/lib/IR/ |
Operator.cpp | 30 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 32 const StructLayout *SL = DL.getStructLayout(STy);
|
TypeFinder.cpp | 107 if (StructType *STy = dyn_cast<StructType>(Ty)) 108 if (!OnlyNamed || STy->hasName()) 109 StructTypes.push_back(STy);
|
ConstantFold.cpp | 119 if (StructType *STy = dyn_cast<StructType>(ElTy)) { 120 if (STy->getNumElements() == 0) break; 121 ElTy = STy->getElementType(0); 123 } else if (SequentialType *STy = 126 ElTy = STy->getElementType(); 359 if (StructType *STy = dyn_cast<StructType>(Ty)) 360 if (!STy->isPacked()) { 361 unsigned NumElems = STy->getNumElements(); 367 getFoldedSizeOf(STy->getElementType(0), DestTy, true); 371 getFoldedSizeOf(STy->getElementType(i), DestTy, true)) [all...] |
InlineAsm.cpp | 287 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); 288 if (!STy || STy->getNumElements() != NumOutputs)
|
Type.cpp | 103 if (auto *STy = dyn_cast<StructType>(this)) { 104 unsigned NumElements = STy->getNumElements(); 106 if (!STy->getElementType(i)->isEmptyTy()) 627 if (auto *STy = dyn_cast<StructType>(this)) { 631 return STy->getElementType(Idx); 638 if (auto *STy = dyn_cast<StructType>(this)) { 640 return STy->getElementType(Idx); 647 if (auto *STy = dyn_cast<StructType>(this)) { 656 return CU && CU->getZExtValue() < STy->getNumElements(); 664 if (auto *STy = dyn_cast<StructType>(this) [all...] |
DataLayout.cpp | 537 StructLayout *&operator[](StructType *STy) { 538 return LayoutInfo[STy]; 736 if (StructType *STy = dyn_cast<StructType>(*TI)) { 743 const StructLayout *Layout = getStructLayout(STy); 749 Ty = STy->getElementType(FieldNo);
|
AsmWriter.cpp | 437 StructType *STy = *I; 440 if (STy->isLiteral()) 443 if (STy->getName().empty()) 444 NumberedTypes[STy] = NextNumber++; 446 *NextToUse++ = STy; 490 StructType *STy = cast<StructType>(Ty); 492 if (STy->isLiteral()) 493 return printStructBody(STy, OS); 495 if (!STy->getName().empty()) 496 return PrintLLVMName(OS, STy->getName(), LocalPrefix) [all...] |
/external/llvm/lib/Transforms/Utils/ |
MetaRenamer.cpp | 104 for (StructType *STy : StructTypes) { 105 if (STy->isLiteral() || STy->getName().empty()) continue; 108 STy->setName((Twine("struct.") +
|
/external/llvm/lib/Target/ |
Target.cpp | 121 StructType *STy = unwrap<StructType>(StructTy); 122 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 127 StructType *STy = unwrap<StructType>(StructTy); 128 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
/external/llvm/lib/Transforms/IPO/ |
IPConstantPropagation.cpp | 171 StructType *STy = dyn_cast<StructType>(F.getReturnType()); 172 if (STy) 173 for (unsigned i = 0, e = STy->getNumElements(); i < e; ++i) 174 RetVals.push_back(UndefValue::get(STy->getElementType(i))); 189 if (!STy) 239 if (!STy) {
|
StripSymbols.cpp | 181 StructType *STy = StructTypes[i]; 182 if (STy->isLiteral() || STy->getName().empty()) continue; 184 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) 187 STy->setName("");
|
ArgumentPromotion.cpp | 287 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 288 if (maxElements > 0 && STy->getNumElements() > maxElements) { 297 for (const auto *EltTy : STy->elements()) { 317 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 319 for (const auto *EltTy : STy->elements()) { 652 StructType *STy = cast<StructType>(AgTy); 653 Params.insert(Params.end(), STy->element_begin(), STy->element_end()); 787 StructType *STy = cast<StructType>(AgTy); 790 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) [all...] |
GlobalOpt.cpp | 134 SequentialType *STy = cast<SequentialType>(Ty); 135 Types.push_back(STy->getElementType()); 139 StructType *STy = cast<StructType>(Ty); 140 if (STy->isOpaque()) return true; 141 for (StructType::element_iterator I = STy->element_begin(), 142 E = STy->element_end(); I != E; ++I) { 491 if (StructType *STy = dyn_cast<StructType>(Ty)) { 492 NewGlobals.reserve(STy->getNumElements()); 493 const StructLayout &Layout = *DL.getStructLayout(STy); 494 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) [all...] |
DeadArgumentElimination.cpp | 386 else if (StructType *STy = dyn_cast<StructType>(RetTy)) 387 return STy->getNumElements(); 401 if (StructType *STy = dyn_cast<StructType>(RetTy)) 402 return STy->getElementType(Idx); 826 if (StructType *STy = dyn_cast<StructType>(RetTy)) { 829 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); [all...] |
/external/clang/include/clang/Sema/ |
Overload.h | 684 auto STy = Surrogate->getConversionType(); 685 while (STy->isPointerType() || STy->isReferenceType()) 686 STy = STy->getPointeeType(); 687 return STy->getAs<FunctionProtoType>()->getNumParams();
|
/frameworks/compile/libbcc/lib/Renderscript/ |
RSX86TranslateGEPPass.cpp | 75 if (llvm::StructType *STy = llvm::dyn_cast<llvm::StructType>(*GTI)) { 83 const llvm::StructLayout *SL = DL.getStructLayout(STy);
|
/external/llvm/lib/CodeGen/ |
Analysis.cpp | 47 if (StructType *STy = dyn_cast<StructType>(Ty)) { 48 for (StructType::element_iterator EB = STy->element_begin(), 50 EE = STy->element_end(); 91 if (StructType *STy = dyn_cast<StructType>(Ty)) { 92 const StructLayout *SL = DL.getStructLayout(STy); 93 for (StructType::element_iterator EB = STy->element_begin(), 95 EE = STy->element_end();
|
/external/llvm/lib/Linker/ |
IRMover.cpp | 65 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes); 96 if (auto *STy = dyn_cast<StructType>(Ty)) 97 if (STy->hasName()) 98 STy->setName(""); 209 void TypeMapTy::finishType(StructType *DTy, StructType *STy, 211 DTy->setBody(ETypes, STy->isPacked()); 213 // Steal STy's name. 214 if (STy->hasName()) { 215 SmallString<16> TmpName = STy->getName(); 216 STy->setName("") [all...] |
/external/llvm/lib/Transforms/Scalar/ |
SCCP.cpp | 243 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { 245 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 297 if (StructType *STy = dyn_cast<StructType>(V->getType())) 298 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 735 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) 737 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 788 StructType *STy = dyn_cast<StructType>(IVI.getType()); 789 if (!STy) 801 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { [all...] |
SROA.cpp | 709 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 711 const StructLayout *SL = DL.getStructLayout(STy); [all...] |
/external/llvm/include/llvm/Transforms/Utils/ |
Local.h | 217 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 222 Size = DL.getStructLayout(STy)->getElementOffset(OpValue);
|
/external/llvm/unittests/Linker/ |
LinkModulesTest.cpp | 162 StructType *STy = StructType::create(Ctx, PointerType::get(FTy, 0)); 165 new GlobalVariable(*InternalM, STy, false /*=isConstant*/, 168 GV->setInitializer(ConstantStruct::get(STy, F));
|
/external/clang/lib/CodeGen/ |
CGCall.cpp | [all...] |
CGExprConstant.cpp | 538 llvm::StructType *STy = 543 if (ValSTy->isLayoutIdentical(STy)) 544 STy = ValSTy; 547 llvm::Constant *Result = llvm::ConstantStruct::get(STy, Elements); 672 llvm::StructType* STy = 674 return llvm::ConstantStruct::get(STy, Elts); [all...] |
/external/llvm/include/llvm/Analysis/ |
TargetTransformInfoImpl.h | 437 StructType *STy = cast<StructType>(*GTI); 441 BaseOffset += DL.getStructLayout(STy)->getElementOffset(Field);
|