/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/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/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());
|
H A D | GlobalOpt.cpp | 128 SequentialType *STy = cast<SequentialType>(Ty); local 129 Types.push_back(STy->getElementType()); 133 StructType *STy = cast<StructType>(Ty); local 134 if (STy->isOpaque()) return true; 135 for (StructType::element_iterator I = STy->element_begin(), 136 E = STy->element_end(); I != E; ++I) { 489 if (StructType *STy = dyn_cast<StructType>(Ty)) { 490 NewGlobals.reserve(STy->getNumElements()); 491 const StructLayout &Layout = *DL.getStructLayout(STy); 492 for (unsigned i = 0, e = STy 1279 StructType *STy = cast<StructType>(MAT); local [all...] |
/external/llvm/lib/IR/ |
H A D | TypeFinder.cpp | 107 if (StructType *STy = dyn_cast<StructType>(Ty)) 108 if (!OnlyNamed || STy->hasName()) 109 StructTypes.push_back(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 | InlineAsm.cpp | 276 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); local 277 if (!STy || STy->getNumElements() != NumOutputs)
|
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 | DataLayout.cpp | 479 StructLayout *&operator[](StructType *STy) { 480 return LayoutInfo[STy]; 740 if (StructType *STy = dyn_cast<StructType>(*TI)) { 747 const StructLayout *Layout = getStructLayout(STy); 753 Ty = STy->getElementType(FieldNo);
|
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) >=
|
/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/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/CodeGen/ |
H A D | Analysis.cpp | 43 if (StructType *STy = dyn_cast<StructType>(Ty)) { 44 for (StructType::element_iterator EB = STy->element_begin(), 46 EE = STy->element_end(); 80 if (StructType *STy = dyn_cast<StructType>(Ty)) { 81 const StructLayout *SL = TLI.getDataLayout()->getStructLayout(STy); 82 for (StructType::element_iterator EB = STy->element_begin(), 84 EE = STy->element_end();
|
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/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 | SROA.cpp | 418 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 420 const StructLayout *SL = DL.getStructLayout(STy); 1309 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { 1310 if (STy->element_begin() == STy->element_end()) 1312 ElementTy = *STy->element_begin(); 1373 StructType *STy = dyn_cast<StructType>(Ty); local 1374 if (!STy) 1377 const StructLayout *SL = DL.getStructLayout(STy); 1383 Type *ElementTy = STy 3039 StructType *STy = dyn_cast<StructType>(Ty); local [all...] |
/external/llvm/include/llvm/Transforms/Utils/ |
H A D | Local.h | 211 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 216 Size = TD.getStructLayout(STy)->getElementOffset(OpValue);
|
/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...] |
H A D | CGCall.cpp | 813 if (llvm::StructType *STy = 815 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1246 llvm::StructType *STy = local 1248 if (!isAAPCSVFP(FI, getTarget()) && STy) { 1249 unsigned Extra = STy->getNumElements()-1; // 1 will be added below. 1528 llvm::StructType *STy = dyn_cast<llvm::StructType>(ArgI.getCoerceToType()); local 1529 if (!isAAPCSVFP(FI, getTarget()) && STy && STy->getNumElements() > 1) { 1530 uint64_t SrcSize = CGM.getDataLayout().getTypeAllocSize(STy); 1536 Ptr = Builder.CreateBitCast(Ptr, llvm::PointerType::getUnqual(STy)); 2806 llvm::StructType *STy = local [all...] |
/external/llvm/include/llvm/IR/ |
H A D | Operator.h | 462 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 464 const StructLayout *SL = DL.getStructLayout(STy);
|
/external/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 211 StructType *STy = local 218 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|