/external/llvm/lib/Transforms/Utils/ |
H A D | MetaRenamer.cpp | 97 StructType *STy = StructTypes[i]; variable 98 if (STy->isLiteral() || STy->getName().empty()) continue; 101 STy->setName((Twine("struct.") + metaNames[prng.rand() %
|
/external/llvm/lib/Transforms/IPO/ |
H A D | IPConstantPropagation.cpp | 171 StructType *STy = dyn_cast<StructType>(F.getReturnType()); local 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) {
|
H A D | StripSymbols.cpp | 182 StructType *STy = StructTypes[i]; local 183 if (STy->isLiteral() || STy->getName().empty()) continue; 185 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) 188 STy->setName("");
|
H A D | ArgumentPromotion.cpp | 169 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 170 if (maxElements > 0 && STy->getNumElements() > maxElements) { 179 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 180 if (!STy->getElementType(i)->isSingleValueType()) { 199 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 201 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 202 if (STy->getElementType(i) == PtrArg->getType()) { 540 StructType *STy = cast<StructType>(AgTy); local 541 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 542 Params.push_back(STy 675 StructType *STy = cast<StructType>(AgTy); local 807 StructType *STy = cast<StructType>(AgTy); local [all...] |
H A D | DeadArgumentElimination.cpp | 381 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) 382 return STy->getNumElements(); 533 Type *STy = dyn_cast<StructType>(F.getReturnType()); local 556 if (STy) { 767 StructType *STy = dyn_cast<StructType>(RetTy); local 768 if (STy) 773 RetTypes.push_back(STy->getElementType(i)); 798 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked());
|
/external/llvm/unittests/Linker/ |
H A D | LinkModulesTest.cpp | 137 StructType *STy = StructType::create(Ctx, PointerType::get(FTy, 0)); local 140 new GlobalVariable(*InternalM, STy, false /*=isConstant*/, 143 GV->setInitializer(ConstantStruct::get(STy, F));
|
/external/llvm/lib/IR/ |
H A D | InlineAsm.cpp | 276 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); local 277 if (!STy || STy->getNumElements() != NumOutputs)
|
H A D | Value.cpp | 493 Type *STy = BC->getSrcTy()->getPointerElementType(), local 495 if (STy->isSized() && DTy->isSized() && 496 (DL->getTypeStoreSize(STy) >= 498 (DL->getABITypeAlignment(STy) >=
|
H A D | ConstantFold.cpp | 117 if (StructType *STy = dyn_cast<StructType>(ElTy)) { 118 if (STy->getNumElements() == 0) break; 119 ElTy = STy->getElementType(0); 121 } else if (SequentialType *STy = 124 ElTy = STy->getElementType(); 345 if (StructType *STy = dyn_cast<StructType>(Ty)) 346 if (!STy->isPacked()) { 347 unsigned NumElems = STy->getNumElements(); 353 getFoldedSizeOf(STy->getElementType(0), DestTy, true); 357 getFoldedSizeOf(STy 1930 isIndexInRangeOfSequentialType(const SequentialType *STy, const ConstantInt *CI) argument [all...] |
H A D | Type.cpp | 105 const StructType *STy = dyn_cast<StructType>(this); local 106 if (STy) { 107 unsigned NumElements = STy->getNumElements(); 109 if (!STy->getElementType(i)->isEmptyTy()) 625 if (StructType *STy = dyn_cast<StructType>(this)) { 629 return STy->getElementType(Idx); 635 if (StructType *STy = dyn_cast<StructType>(this)) { 637 return STy->getElementType(Idx); 643 if (const StructType *STy = dyn_cast<StructType>(this)) { 652 return CU && CU->getZExtValue() < STy [all...] |
H A D | AsmWriter.cpp | 178 StructType *STy = *I; local 181 if (STy->isLiteral()) 184 if (STy->getName().empty()) 185 NumberedTypes[STy] = NextNumber++; 187 *NextToUse++ = STy; 230 StructType *STy = cast<StructType>(Ty); local 232 if (STy->isLiteral()) 233 return printStructBody(STy, OS); 235 if (!STy->getName().empty()) 236 return PrintLLVMName(OS, STy 242 OS << "%\\"type " << STy << '\\"'; local 271 printStructBody(StructType *STy, raw_ostream &OS) argument [all...] |
H A D | Verifier.cpp | 420 StructType *STy = dyn_cast<StructType>(ATy->getElementType()); local 424 Assert1(STy && (STy->getNumElements() == 2 || 425 STy->getNumElements() == 3) && 426 STy->getTypeAtIndex(0u)->isIntegerTy(32) && 427 STy->getTypeAtIndex(1) == FuncPtrTy, 429 if (STy->getNumElements() == 3) { 430 Type *ETy = STy->getTypeAtIndex(2);
|
H A D | Constants.cpp | 1853 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { argument 1854 return getOffsetOf(STy, ConstantInt::get(Type::getInt32Ty(STy->getContext()),
|
/external/llvm/lib/Target/ |
H A D | Target.cpp | 124 StructType *STy = unwrap<StructType>(StructTy); local 125 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 130 StructType *STy = unwrap<StructType>(StructTy); local 131 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
/external/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 211 StructType *STy = local 218 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/external/llvm/lib/CodeGen/ |
H A D | ShadowStackGC.cpp | 231 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); local 233 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/external/llvm/lib/ExecutionEngine/JIT/ |
H A D | JIT.cpp | 345 FunctionType *STy=FunctionType::get(RetTy, false); local 346 Function *Stub = Function::Create(STy, Function::InternalLinkage, "",
|
/external/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 617 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 633 const StructLayout *SL = TD->getStructLayout(STy); 938 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 941 const StructLayout *SL = DL->getStructLayout(STy); 1554 llvm::StructType *STy = dyn_cast<llvm::StructType>(IndexedType); local 1555 if (STy) { 1559 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1563 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip,
|
H A D | ScalarEvolutionExpander.cpp | 455 while (StructType *STy = dyn_cast<StructType>(ElTy)) { 458 if (STy->getNumElements() == 0) break; 465 const StructLayout &SL = *SE.DL->getStructLayout(STy); 471 ElTy = STy->getTypeAtIndex(ElIdx); 485 if (U->isOffsetOf(CTy, FieldNo) && CTy == STy) { 488 STy->getTypeAtIndex(cast<ConstantInt>(FieldNo)->getZExtValue()); 500 ElTy = STy->getTypeAtIndex(0u); 1236 Type *STy = S->getType(); local 1237 Type *IntTy = SE.getEffectiveSCEVType(STy); 1277 Type *ExpandTy = PostLoopScale ? IntTy : STy; [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | SCCP.cpp | 241 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { 243 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 295 if (StructType *STy = dyn_cast<StructType>(V->getType())) 296 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 726 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) 728 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 779 StructType *STy = dyn_cast<StructType>(IVI.getType()); local 780 if (!STy) 792 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1137 if (StructType *STy [all...] |
H A D | ScalarReplAggregates.cpp | 2538 StructType *STy = cast<StructType>(Ty); local 2539 const StructLayout *SL = DL.getStructLayout(STy); 2541 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 2548 PrevFieldBitOffset+DL.getTypeSizeInBits(STy->getElementType(i-1)); 2555 if (unsigned EltCount = STy->getNumElements()) { 2557 DL.getTypeSizeInBits(STy->getElementType(EltCount-1));
|
/external/clang/include/clang/Sema/ |
H A D | Overload.h | 685 auto STy = Surrogate->getConversionType(); local 686 while (STy->isPointerType() || STy->isReferenceType()) 687 STy = STy->getPointeeType(); 688 return STy->getAs<FunctionProtoType>()->getNumParams();
|
/external/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 510 llvm::StructType *STy = local 515 if (ValSTy->isLayoutIdentical(STy)) 516 STy = ValSTy; 519 llvm::Constant *Result = llvm::ConstantStruct::get(STy, Elements); 631 llvm::StructType* STy = local 633 return llvm::ConstantStruct::get(STy, Elts); 1108 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1111 return llvm::ConstantStruct::get(STy, Complex); 1130 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1133 return llvm::ConstantStruct::get(STy, Comple [all...] |
/external/llvm/lib/Linker/ |
H A D | LinkModules.cpp | 229 // If DstSTy has no name or has a longer name than STy, then viciously steal 230 // STy's name. 334 StructType *STy = cast<StructType>(Ty); local 337 if (STy->isOpaque()) { 340 DstStructTypesSet.insert(STy); 341 return *Entry = STy; 346 SrcDefinitionsToResolve.push_back(STy); 347 StructType *DTy = StructType::create(STy->getContext());
|
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAsmPrinter.cpp | 1725 const StructType *STy = dyn_cast<StructType>(Ty); local 1726 if (STy) { 1730 for (unsigned i = 0, e = STy->getNumElements(); i != e; i++) { 1731 Type *ETy = STy->getElementType(i);
|