/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/Target/ |
Target.cpp | 122 StructType *STy = unwrap<StructType>(StructTy); 123 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 128 StructType *STy = unwrap<StructType>(StructTy); 129 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
/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 | 160 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 161 if (maxElements > 0 && STy->getNumElements() > maxElements) { 170 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 171 if (!STy->getElementType(i)->isSingleValueType()) { 190 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 192 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 193 if (STy->getElementType(i) == PtrArg->getType()) { 527 StructType *STy = cast<StructType>(AgTy); 528 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 529 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 | 403 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) 404 return STy->getNumElements(); 550 Type *STy = dyn_cast<StructType>(F.getReturnType()); 574 if (STy) { 786 StructType *STy = dyn_cast<StructType>(RetTy); 787 if (STy) 792 RetTypes.push_back(STy->getElementType(i)); 817 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); [all...] |
GlobalOpt.cpp | 329 SequentialType *STy = cast<SequentialType>(Ty); 330 Types.push_back(STy->getElementType()); 334 StructType *STy = cast<StructType>(Ty); 335 if (STy->isOpaque()) return true; 336 for (StructType::element_iterator I = STy->element_begin(), 337 E = STy->element_end(); I != E; ++I) { 681 if (StructType *STy = dyn_cast<StructType>(Ty)) { 682 NewGlobals.reserve(STy->getNumElements()); 683 const StructLayout &Layout = *TD.getStructLayout(STy); 684 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 | 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->getElementType(i), DestTy, true)) [all...] |
AsmWriter.cpp | 173 StructType *STy = *I; 176 if (STy->isLiteral()) 179 if (STy->getName().empty()) 180 NumberedTypes[STy] = NextNumber++; 182 *NextToUse++ = STy; 225 StructType *STy = cast<StructType>(Ty); 227 if (STy->isLiteral()) 228 return printStructBody(STy, OS); 230 if (!STy->getName().empty()) 231 return PrintLLVMName(OS, STy->getName(), LocalPrefix) [all...] |
DataLayout.cpp | 425 StructLayout *&operator[](StructType *STy) { 426 return LayoutInfo[STy]; 642 if (StructType *STy = dyn_cast<StructType>(*TI)) { 649 const StructLayout *Layout = getStructLayout(STy); 655 Ty = STy->getElementType(FieldNo);
|
/external/llvm/include/llvm/Transforms/Utils/ |
Local.h | 210 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 211 Size = TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
|
/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/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/llvm/include/llvm/IR/ |
Operator.h | 458 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 460 const StructLayout *SL = DL.getStructLayout(STy);
|
/external/clang/lib/CodeGen/ |
CGExprConstant.cpp | 527 llvm::StructType *STy = 532 if (ValSTy->isLayoutIdentical(STy)) 533 STy = ValSTy; 536 llvm::Constant *Result = llvm::ConstantStruct::get(STy, Elements); 652 llvm::StructType* STy = 654 return llvm::ConstantStruct::get(STy, Elts); [all...] |
CGCall.cpp | 771 if (llvm::StructType *STy = 773 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { [all...] |
/external/llvm/lib/Linker/ |
LinkModules.cpp | 227 // If DstSTy has no name or has a longer name than STy, then viciously steal 228 // STy's name. 332 StructType *STy = cast<StructType>(Ty); 335 if (STy->isOpaque()) { 338 DstStructTypesSet.insert(STy); 339 return *Entry = STy; 344 SrcDefinitionsToResolve.push_back(STy); 345 StructType *DTy = StructType::create(STy->getContext()); [all...] |
/external/llvm/tools/bugpoint/ |
ExtractFunction.cpp | 210 StructType *STy = 217 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/external/llvm/lib/Analysis/ |
ScalarEvolutionExpander.cpp | 455 while (StructType *STy = dyn_cast<StructType>(ElTy)) { 458 if (STy->getNumElements() == 0) break; 465 const StructLayout &SL = *SE.TD->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); [all...] |
ValueTracking.cpp | 630 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 633 const StructLayout *SL = TD->getStructLayout(STy); [all...] |