/external/llvm/lib/Target/ |
Target.cpp | 96 StructType *STy = unwrap<StructType>(StructTy); 97 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 102 StructType *STy = unwrap<StructType>(StructTy); 103 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
TargetData.cpp | 338 StructLayout *&operator[](StructType *STy) { 339 return LayoutInfo[STy]; 542 if (StructType *STy = dyn_cast<StructType>(*TI)) { 549 const StructLayout *Layout = getStructLayout(STy); 555 Ty = STy->getElementType(FieldNo);
|
/external/llvm/lib/Transforms/IPO/ |
IPConstantPropagation.cpp | 170 StructType *STy = dyn_cast<StructType>(F.getReturnType()); 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) {
|
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()) { 533 StructType *STy = cast<StructType>(AgTy); 534 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 535 Params.push_back(STy->getElementType(i)) [all...] |
GlobalOpt.cpp | 286 if (StructType *STy = dyn_cast<StructType>(Agg->getType())) { 287 if (IdxV < STy->getNumElements()) 288 return Constant::getNullValue(STy->getElementType(IdxV)); 289 } else if (SequentialType *STy = 291 return Constant::getNullValue(STy->getElementType()); 294 if (StructType *STy = dyn_cast<StructType>(Agg->getType())) { 295 if (IdxV < STy->getNumElements()) 296 return UndefValue::get(STy->getElementType(IdxV)); 297 } else if (SequentialType *STy = 299 return UndefValue::get(STy->getElementType()) [all...] |
StripSymbols.cpp | 182 StructType *STy = StructTypes[i]; 183 if (STy->isLiteral() || STy->getName().empty()) continue; 185 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) 188 STy->setName("");
|
DeadArgumentElimination.cpp | 347 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) 348 return STy->getNumElements(); 494 Type *STy = dyn_cast<StructType>(F.getReturnType()); 518 if (STy) { 672 StructType *STy = dyn_cast<StructType>(RetTy); 673 if (STy) 678 RetTypes.push_back(STy->getElementType(i)); 703 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); [all...] |
/external/llvm/lib/CodeGen/ |
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.getTargetData()->getStructLayout(STy); 82 for (StructType::element_iterator EB = STy->element_begin(), 84 EE = STy->element_end();
|
ShadowStackGC.cpp | 231 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); 233 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/external/llvm/lib/VMCore/ |
InlineAsm.cpp | 285 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); 286 if (STy == 0 || STy->getNumElements() != NumOutputs)
|
Type.cpp | 120 const StructType *STy = dyn_cast<StructType>(this); 121 if (STy) { 122 unsigned NumElements = STy->getNumElements(); 124 if (!STy->getElementType(i)->isEmptyTy()) 577 if (StructType *STy = dyn_cast<StructType>(this)) { 580 return STy->getElementType(Idx); 586 if (StructType *STy = dyn_cast<StructType>(this)) { 588 return STy->getElementType(Idx); 594 if (const StructType *STy = dyn_cast<StructType>(this)) { 598 return CU->getZExtValue() < STy->getNumElements() [all...] |
AsmWriter.cpp | 171 StructType *STy = *I; 174 if (STy->isLiteral()) 177 if (STy->getName().empty()) 178 NumberedTypes[STy] = NextNumber++; 180 *NextToUse++ = STy; 222 StructType *STy = cast<StructType>(Ty); 224 if (STy->isLiteral()) 225 return printStructBody(STy, OS); 227 if (!STy->getName().empty()) 228 return PrintLLVMName(OS, STy->getName(), LocalPrefix) [all...] |
ConstantFold.cpp | 114 if (StructType *STy = dyn_cast<StructType>(ElTy)) { 115 if (STy->getNumElements() == 0) break; 116 ElTy = STy->getElementType(0); 118 } else if (SequentialType *STy = 121 ElTy = STy->getElementType(); 342 if (StructType *STy = dyn_cast<StructType>(Ty)) 343 if (!STy->isPacked()) { 344 unsigned NumElems = STy->getNumElements(); 350 getFoldedSizeOf(STy->getElementType(0), DestTy, true); 354 getFoldedSizeOf(STy->getElementType(i), DestTy, true)) [all...] |
Module.cpp | 491 if (StructType *STy = dyn_cast<StructType>(Ty)) 492 StructTypes.push_back(STy);
|
/external/llvm/lib/Transforms/Scalar/ |
SCCP.cpp | 244 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { 246 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 305 if (StructType *STy = dyn_cast<StructType>(V->getType())) 306 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 788 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) 790 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 841 StructType *STy = dyn_cast<StructType>(IVI.getType()); 842 if (STy == 0) 854 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { [all...] |
/external/clang/lib/CodeGen/ |
CGExprConstant.cpp | 437 llvm::StructType *STy = 442 if (ILESTy->isLayoutIdentical(STy)) 443 STy = ILESTy; 447 llvm::ConstantStruct::get(STy, Builder.Elements); 556 llvm::StructType* STy = 558 return llvm::ConstantStruct::get(STy, Elts); 755 llvm::StructType *STy = 757 return llvm::ConstantStruct::get(STy, Complex); [all...] |
CGCall.cpp | 513 if (llvm::StructType *STy = 515 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 831 if (llvm::StructType *STy = 833 Index += STy->getNumElements()-1; // 1 will be added below. [all...] |
TargetInfo.cpp | [all...] |
/external/llvm/lib/Analysis/ |
ScalarEvolutionExpander.cpp | 430 while (StructType *STy = dyn_cast<StructType>(ElTy)) { 433 if (STy->getNumElements() == 0) break; 440 const StructLayout &SL = *SE.TD->getStructLayout(STy); 446 ElTy = STy->getTypeAtIndex(ElIdx); 460 if (U->isOffsetOf(CTy, FieldNo) && CTy == STy) { 463 STy->getTypeAtIndex(cast<ConstantInt>(FieldNo)->getZExtValue()); 475 ElTy = STy->getTypeAtIndex(0u); [all...] |
ValueTracking.cpp | 562 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 565 const StructLayout *SL = TD->getStructLayout(STy); [all...] |
ConstantFolding.cpp | 685 } else if (StructType *STy = dyn_cast<StructType>(Ty)) { 689 const StructLayout &SL = *TD->getStructLayout(STy); 694 Ty = STy->getTypeAtIndex(ElIdx); [all...] |
/external/llvm/lib/Linker/ |
LinkModules.cpp | 195 // If DstSTy has no name or has a longer name than STy, then viciously steal 196 // STy's name. 299 StructType *STy = cast<StructType>(Ty); 302 if (STy->isOpaque()) 303 return *Entry = STy; 307 DefinitionsToResolve.push_back(STy); 308 return *Entry = StructType::create(STy->getContext()); [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | 284 if (StructType *STy = dyn_cast<StructType>(SrcPTy)) { 285 if (!STy->getNumElements()) /* Struct can be empty {} */ 288 SrcPTy = STy->getElementType(0);
|
/external/llvm/lib/Transforms/Utils/ |
AddrModeMatcher.cpp | 225 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 226 const StructLayout *SL = TD->getStructLayout(STy);
|
/external/llvm/tools/bugpoint/ |
ExtractFunction.cpp | 178 StructType *STy = 185 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|