/external/llvm/lib/Target/ |
H A D | Target.cpp | 96 StructType *STy = unwrap<StructType>(StructTy); local 97 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 102 StructType *STy = unwrap<StructType>(StructTy); local 103 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
H A D | TargetData.cpp | 403 StructLayout *&operator[](StructType *STy) { argument 404 return LayoutInfo[STy]; 607 if (StructType *STy = dyn_cast<StructType>(*TI)) { 614 const StructLayout *Layout = getStructLayout(STy); 620 Ty = STy->getElementType(FieldNo);
|
/external/llvm/lib/Transforms/IPO/ |
H A D | IPConstantPropagation.cpp | 170 StructType *STy = dyn_cast<StructType>(F.getReturnType()); local 171 if (STy) 172 for (unsigned i = 0, e = STy->getNumElements(); i < e; ++i) 173 RetVals.push_back(UndefValue::get(STy->getElementType(i))); 188 if (!STy) 238 if (STy == 0) {
|
H A D | ArgumentPromotion.cpp | 163 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 164 if (maxElements > 0 && STy->getNumElements() > maxElements) { 173 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 174 if (!STy->getElementType(i)->isSingleValueType()) { 193 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 195 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 196 if (STy->getElementType(i) == PtrArg->getType()) { 530 StructType *STy = cast<StructType>(AgTy); local 531 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 532 Params.push_back(STy 662 StructType *STy = cast<StructType>(AgTy); local 790 StructType *STy = cast<StructType>(AgTy); local [all...] |
H A D | StripSymbols.cpp | 183 StructType *STy = StructTypes[i]; local 184 if (STy->isLiteral() || STy->getName().empty()) continue; 186 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) 189 STy->setName("");
|
H A D | DeadArgumentElimination.cpp | 347 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) 348 return STy->getNumElements(); 494 Type *STy = dyn_cast<StructType>(F.getReturnType()); local 518 if (STy) { 672 StructType *STy = dyn_cast<StructType>(RetTy); local 673 if (STy) 678 RetTypes.push_back(STy->getElementType(i)); 703 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked());
|
H A D | GlobalOpt.cpp | 324 SequentialType *STy = cast<SequentialType>(Ty); local 325 Types.push_back(STy->getElementType()); 329 StructType *STy = cast<StructType>(Ty); local 330 if (STy->isOpaque()) return true; 331 for (StructType::element_iterator I = STy->element_begin(), 332 E = STy->element_end(); I != E; ++I) { 676 if (StructType *STy = dyn_cast<StructType>(Ty)) { 677 NewGlobals.reserve(STy->getNumElements()); 678 const StructLayout &Layout = *TD.getStructLayout(STy); 679 for (unsigned i = 0, e = STy 1473 StructType *STy = cast<StructType>(MAT); local [all...] |
/external/llvm/lib/VMCore/ |
H A D | TypeFinder.cpp | 99 if (StructType *STy = dyn_cast<StructType>(Ty)) 100 if (!OnlyNamed || STy->hasName()) 101 StructTypes.push_back(STy);
|
H A D | InlineAsm.cpp | 286 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); local 287 if (STy == 0 || STy->getNumElements() != NumOutputs)
|
H A D | Type.cpp | 122 const StructType *STy = dyn_cast<StructType>(this); local 123 if (STy) { 124 unsigned NumElements = STy->getNumElements(); 126 if (!STy->getElementType(i)->isEmptyTy()) 657 if (StructType *STy = dyn_cast<StructType>(this)) { 660 return STy->getElementType(Idx); 666 if (StructType *STy = dyn_cast<StructType>(this)) { 668 return STy->getElementType(Idx); 674 if (const StructType *STy = dyn_cast<StructType>(this)) { 678 return CU->getZExtValue() < STy [all...] |
H A D | ConstantFold.cpp | 112 if (StructType *STy = dyn_cast<StructType>(ElTy)) { 113 if (STy->getNumElements() == 0) break; 114 ElTy = STy->getElementType(0); 116 } else if (SequentialType *STy = 119 ElTy = STy->getElementType(); 340 if (StructType *STy = dyn_cast<StructType>(Ty)) 341 if (!STy->isPacked()) { 342 unsigned NumElems = STy->getNumElements(); 348 getFoldedSizeOf(STy->getElementType(0), DestTy, true); 352 getFoldedSizeOf(STy [all...] |
H A D | AsmWriter.cpp | 176 StructType *STy = *I; local 179 if (STy->isLiteral()) 182 if (STy->getName().empty()) 183 NumberedTypes[STy] = NextNumber++; 185 *NextToUse++ = STy; 228 StructType *STy = cast<StructType>(Ty); local 230 if (STy->isLiteral()) 231 return printStructBody(STy, OS); 233 if (!STy->getName().empty()) 234 return PrintLLVMName(OS, STy 240 OS << "%\\"type " << STy << '\\"'; local 271 printStructBody(StructType *STy, raw_ostream &OS) argument [all...] |
/external/llvm/lib/CodeGen/ |
H A D | Analysis.cpp | 44 if (StructType *STy = dyn_cast<StructType>(Ty)) { 45 for (StructType::element_iterator EB = STy->element_begin(), 47 EE = STy->element_end(); 81 if (StructType *STy = dyn_cast<StructType>(Ty)) { 82 const StructLayout *SL = TLI.getTargetData()->getStructLayout(STy); 83 for (StructType::element_iterator EB = STy->element_begin(), 85 EE = STy->element_end();
|
H A D | ShadowStackGC.cpp | 230 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); local 232 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/external/llvm/include/llvm/Transforms/Utils/ |
H A D | Local.h | 200 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 201 Size = TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | SCCP.cpp | 240 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { 242 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 301 if (StructType *STy = dyn_cast<StructType>(V->getType())) 302 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 734 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) 736 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 787 StructType *STy = dyn_cast<StructType>(IVI.getType()); local 788 if (STy == 0) 800 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1145 if (StructType *STy [all...] |
/external/llvm/lib/Analysis/ |
H A D | ScalarEvolutionExpander.cpp | 456 while (StructType *STy = dyn_cast<StructType>(ElTy)) { 459 if (STy->getNumElements() == 0) break; 466 const StructLayout &SL = *SE.TD->getStructLayout(STy); 472 ElTy = STy->getTypeAtIndex(ElIdx); 486 if (U->isOffsetOf(CTy, FieldNo) && CTy == STy) { 489 STy->getTypeAtIndex(cast<ConstantInt>(FieldNo)->getZExtValue()); 501 ElTy = STy->getTypeAtIndex(0u); 1159 Type *STy = S->getType(); local 1160 Type *IntTy = SE.getEffectiveSCEVType(STy); 1203 Type *ExpandTy = PostLoopScale ? IntTy : STy; [all...] |
H A D | ValueTracking.cpp | 618 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 621 const StructLayout *SL = TD->getStructLayout(STy); 1424 llvm::StructType *STy = llvm::dyn_cast<llvm::StructType>(IndexedType); local 1425 if (STy) { 1429 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1433 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, 1605 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 1606 Offset += TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
|
/external/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 560 llvm::StructType *STy = local 565 if (ValSTy->isLayoutIdentical(STy)) 566 STy = ValSTy; 569 llvm::Constant *Result = llvm::ConstantStruct::get(STy, Elements); 681 llvm::StructType* STy = local 683 return llvm::ConstantStruct::get(STy, Elts); 1124 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1127 return llvm::ConstantStruct::get(STy, Complex); 1145 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1148 return llvm::ConstantStruct::get(STy, Comple [all...] |
H A D | CGCall.cpp | 709 if (llvm::StructType *STy = 711 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1031 if (llvm::StructType *STy = 1033 unsigned Extra = STy->getNumElements()-1; // 1 will be added below. 1227 llvm::StructType *STy = dyn_cast<llvm::StructType>(ArgI.getCoerceToType()); local 1228 if (STy && STy->getNumElements() > 1) { 1229 uint64_t SrcSize = CGM.getTargetData().getTypeAllocSize(STy); 1235 Ptr = Builder.CreateBitCast(Ptr, llvm::PointerType::getUnqual(STy)); 1237 for (unsigned i = 0, e = STy [all...] |
H A D | TargetInfo.cpp | 1684 llvm::StructType *STy = dyn_cast<llvm::StructType>(IRType); 1685 while (STy && STy->getNumElements() == 1) { 1686 IRType = STy->getElementType(0); 1687 STy = dyn_cast<llvm::StructType>(IRType); 1801 if (llvm::StructType *STy = dyn_cast<llvm::StructType>(IRType)) { 1802 const llvm::StructLayout *SL = TD.getStructLayout(STy); 1805 return ContainsFloatAtOffset(STy->getElementType(Elt), IROffset, TD); 1883 if (llvm::StructType *STy = dyn_cast<llvm::StructType>(IRType)) { 1885 const llvm::StructLayout *SL = getTargetData().getStructLayout(STy); [all...] |
/external/llvm/lib/Transforms/Utils/ |
H A D | AddrModeMatcher.cpp | 227 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 228 const StructLayout *SL = TD->getStructLayout(STy);
|
/external/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 210 StructType *STy = local 217 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/external/llvm/lib/Linker/ |
H A D | LinkModules.cpp | 226 // If DstSTy has no name or has a longer name than STy, then viciously steal 227 // STy's name. 331 StructType *STy = cast<StructType>(Ty); local 334 if (STy->isOpaque()) 335 return *Entry = STy; 339 SrcDefinitionsToResolve.push_back(STy); 340 StructType *DTy = StructType::create(STy->getContext());
|
/external/llvm/lib/Bitcode/Writer/ |
H A D | ValueEnumerator.cpp | 362 if (StructType *STy = dyn_cast<StructType>(Ty)) 363 if (!STy->isLiteral())
|