/external/llvm/lib/Target/ |
Target.cpp | 104 StructType *STy = unwrap<StructType>(StructTy); 105 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 110 StructType *STy = unwrap<StructType>(StructTy); 111 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
/external/llvm/lib/Transforms/Utils/ |
MetaRenamer.cpp | 97 StructType *STy = StructTypes[i]; 98 if (STy->isLiteral() || STy->getName().empty()) continue; 101 STy->setName((Twine("struct.") + metaNames[prng.rand() %
|
/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 | 164 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 165 if (maxElements > 0 && STy->getNumElements() > maxElements) { 174 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 175 if (!STy->getElementType(i)->isSingleValueType()) { 194 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 196 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 197 if (STy->getElementType(i) == PtrArg->getType()) { 532 StructType *STy = cast<StructType>(AgTy); 533 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 534 Params.push_back(STy->getElementType(i)) [all...] |
StripSymbols.cpp | 183 StructType *STy = StructTypes[i]; 184 if (STy->isLiteral() || STy->getName().empty()) continue; 186 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) 189 STy->setName("");
|
DeadArgumentElimination.cpp | 393 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) 394 return STy->getNumElements(); 540 Type *STy = dyn_cast<StructType>(F.getReturnType()); 564 if (STy) { 713 StructType *STy = dyn_cast<StructType>(RetTy); 714 if (STy) 719 RetTypes.push_back(STy->getElementType(i)); 744 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); [all...] |
GlobalOpt.cpp | 328 SequentialType *STy = cast<SequentialType>(Ty); 329 Types.push_back(STy->getElementType()); 333 StructType *STy = cast<StructType>(Ty); 334 if (STy->isOpaque()) return true; 335 for (StructType::element_iterator I = STy->element_begin(), 336 E = STy->element_end(); I != E; ++I) { 680 if (StructType *STy = dyn_cast<StructType>(Ty)) { 681 NewGlobals.reserve(STy->getNumElements()); 682 const StructLayout &Layout = *TD.getStructLayout(STy); 683 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) [all...] |
/external/llvm/lib/IR/ |
TypeFinder.cpp | 99 if (StructType *STy = dyn_cast<StructType>(Ty)) 100 if (!OnlyNamed || STy->hasName()) 101 StructTypes.push_back(STy);
|
InlineAsm.cpp | 286 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); 287 if (STy == 0 || STy->getNumElements() != NumOutputs)
|
Type.cpp | 105 const StructType *STy = dyn_cast<StructType>(this); 106 if (STy) { 107 unsigned NumElements = STy->getNumElements(); 109 if (!STy->getElementType(i)->isEmptyTy()) 632 if (StructType *STy = dyn_cast<StructType>(this)) { 636 return STy->getElementType(Idx); 642 if (StructType *STy = dyn_cast<StructType>(this)) { 644 return STy->getElementType(Idx); 650 if (const StructType *STy = dyn_cast<StructType>(this)) { 659 return CU && CU->getZExtValue() < STy->getNumElements() [all...] |
ConstantFold.cpp | 116 if (StructType *STy = dyn_cast<StructType>(ElTy)) { 117 if (STy->getNumElements() == 0) break; 118 ElTy = STy->getElementType(0); 120 } else if (SequentialType *STy = 123 ElTy = STy->getElementType(); 344 if (StructType *STy = dyn_cast<StructType>(Ty)) 345 if (!STy->isPacked()) { 346 unsigned NumElems = STy->getNumElements(); 352 getFoldedSizeOf(STy->getElementType(0), DestTy, true); 356 getFoldedSizeOf(STy->getElementType(i), DestTy, true)) [all...] |
AsmWriter.cpp | 195 StructType *STy = *I; 198 if (STy->isLiteral()) 201 if (STy->getName().empty()) 202 NumberedTypes[STy] = NextNumber++; 204 *NextToUse++ = STy; 247 StructType *STy = cast<StructType>(Ty); 249 if (STy->isLiteral()) 250 return printStructBody(STy, OS); 252 if (!STy->getName().empty()) 253 return PrintLLVMName(OS, STy->getName(), LocalPrefix) [all...] |
DataLayout.cpp | 427 StructLayout *&operator[](StructType *STy) { 428 return LayoutInfo[STy]; 675 if (StructType *STy = dyn_cast<StructType>(*TI)) { 682 const StructLayout *Layout = getStructLayout(STy); 688 Ty = STy->getElementType(FieldNo);
|
/external/llvm/lib/CodeGen/ |
Analysis.cpp | 42 if (StructType *STy = dyn_cast<StructType>(Ty)) { 43 for (StructType::element_iterator EB = STy->element_begin(), 45 EE = STy->element_end(); 79 if (StructType *STy = dyn_cast<StructType>(Ty)) { 80 const StructLayout *SL = TLI.getDataLayout()->getStructLayout(STy); 81 for (StructType::element_iterator EB = STy->element_begin(), 83 EE = STy->element_end();
|
ShadowStackGC.cpp | 230 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); 232 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/external/llvm/include/llvm/Transforms/Utils/ |
Local.h | 202 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 203 Size = TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
|
/external/llvm/lib/Transforms/Scalar/ |
SCCP.cpp | 240 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { 242 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 294 if (StructType *STy = dyn_cast<StructType>(V->getType())) 295 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 724 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) 726 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 777 StructType *STy = dyn_cast<StructType>(IVI.getType()); 778 if (STy == 0) 790 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { [all...] |
SROA.cpp | [all...] |
/external/clang/lib/CodeGen/ |
CGCall.cpp | 748 if (llvm::StructType *STy = 750 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { [all...] |
CGExprConstant.cpp | 560 llvm::StructType *STy = 565 if (ValSTy->isLayoutIdentical(STy)) 566 STy = ValSTy; 569 llvm::Constant *Result = llvm::ConstantStruct::get(STy, Elements); 681 llvm::StructType* STy = 683 return llvm::ConstantStruct::get(STy, Elts); [all...] |
/external/llvm/include/llvm/IR/ |
Operator.h | 458 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 460 const StructLayout *SL = DL.getStructLayout(STy);
|
/external/llvm/lib/Analysis/ |
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); [all...] |
ValueTracking.cpp | 630 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 633 const StructLayout *SL = TD->getStructLayout(STy); [all...] |
/external/llvm/tools/bugpoint/ |
ExtractFunction.cpp | 210 StructType *STy = 217 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/external/llvm/lib/Linker/ |
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); 334 if (STy->isOpaque()) 335 return *Entry = STy; 339 SrcDefinitionsToResolve.push_back(STy); 340 StructType *DTy = StructType::create(STy->getContext()); [all...] |