/external/llvm/lib/IR/ |
InlineAsm.cpp | 287 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); 288 if (!STy || STy->getNumElements() != NumOutputs)
|
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...] |
Verifier.cpp | 500 StructType *STy = dyn_cast<StructType>(ATy->getElementType()); 504 Assert(STy && 505 (STy->getNumElements() == 2 || STy->getNumElements() == 3) && 506 STy->getTypeAtIndex(0u)->isIntegerTy(32) && 507 STy->getTypeAtIndex(1) == FuncPtrTy, 509 if (STy->getNumElements() == 3) { 510 Type *ETy = STy->getTypeAtIndex(2); [all...] |
/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...] |
/external/llvm/lib/Transforms/Scalar/ |
NaryReassociate.cpp | 331 StructType *STy = cast<StructType>(*GTI); 333 BaseOffset += DL->getStructLayout(STy)->getElementOffset(Field);
|
StraightLineStrengthReduce.cpp | 266 StructType *STy = cast<StructType>(*GTI); 268 BaseOffset += DL->getStructLayout(STy)->getElementOffset(Field);
|
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...] |
ScalarReplAggregates.cpp | [all...] |
/external/llvm/tools/bugpoint/ |
ExtractFunction.cpp | 231 StructType *STy = 238 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/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/llvm/include/llvm/Analysis/ |
TargetTransformInfoImpl.h | 437 StructType *STy = cast<StructType>(*GTI); 441 BaseOffset += DL.getStructLayout(STy)->getElementOffset(Field);
|
/external/llvm/lib/CodeGen/ |
ShadowStackGCLowering.cpp | 222 StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta)); 224 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/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();
|
/external/clang/lib/CodeGen/ |
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...] |
CGDebugInfo.cpp | [all...] |
CodeGenModule.cpp | [all...] |
/external/llvm/lib/Analysis/ |
ScalarEvolutionExpander.cpp | 449 while (StructType *STy = dyn_cast<StructType>(ElTy)) { 452 if (STy->getNumElements() == 0) break; 459 const StructLayout &SL = *DL.getStructLayout(STy); 465 ElTy = STy->getTypeAtIndex(ElIdx); 476 ElTy = STy->getTypeAtIndex(0u); [all...] |
ValueTracking.cpp | [all...] |
/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/Target/Hexagon/ |
HexagonCommonGEP.cpp | 233 StructType *STy = cast<StructType>(GN.PTy); 234 if (!STy->isLiteral()) 237 OS << "<anon-struct>:" << *STy; [all...] |
/external/llvm/lib/Transforms/Vectorize/ |
BBVectorize.cpp | 474 Type *STy = ElemTy->getScalarType(); 489 return VectorType::get(STy, numElem); [all...] |