/freebsd-10.0-release/contrib/llvm/lib/Transforms/Utils/ |
H A D | MetaRenamer.cpp | 97 StructType *STy = StructTypes[i]; local 98 if (STy->isLiteral() || STy->getName().empty()) continue; 101 STy->setName((Twine("struct.") + metaNames[prng.rand() %
|
/freebsd-10.0-release/contrib/llvm/lib/Target/ |
H A D | Target.cpp | 122 StructType *STy = unwrap<StructType>(StructTy); local 123 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 128 StructType *STy = unwrap<StructType>(StructTy); local 129 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
/freebsd-10.0-release/contrib/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 | 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); local 533 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 534 Params.push_back(STy 664 StructType *STy = cast<StructType>(AgTy); local 795 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 | 393 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) 394 return STy->getNumElements(); 540 Type *STy = dyn_cast<StructType>(F.getReturnType()); local 564 if (STy) { 713 StructType *STy = dyn_cast<StructType>(RetTy); local 714 if (STy) 719 RetTypes.push_back(STy->getElementType(i)); 744 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked());
|
H A D | GlobalOpt.cpp | 328 SequentialType *STy = cast<SequentialType>(Ty); local 329 Types.push_back(STy->getElementType()); 333 StructType *STy = cast<StructType>(Ty); local 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 1479 StructType *STy = cast<StructType>(MAT); local [all...] |
/freebsd-10.0-release/contrib/llvm/lib/IR/ |
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 | 105 const StructType *STy = dyn_cast<StructType>(this); local 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 [all...] |
H A D | 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 [all...] |
H A D | AsmWriter.cpp | 197 StructType *STy = *I; local 200 if (STy->isLiteral()) 203 if (STy->getName().empty()) 204 NumberedTypes[STy] = NextNumber++; 206 *NextToUse++ = STy; 249 StructType *STy = cast<StructType>(Ty); local 251 if (STy->isLiteral()) 252 return printStructBody(STy, OS); 254 if (!STy->getName().empty()) 255 return PrintLLVMName(OS, STy 261 OS << "%\\"type " << STy << '\\"'; local 292 printStructBody(StructType *STy, raw_ostream &OS) argument [all...] |
H A D | DataLayout.cpp | 427 StructLayout *&operator[](StructType *STy) { 428 return LayoutInfo[STy]; 641 if (StructType *STy = dyn_cast<StructType>(*TI)) { 648 const StructLayout *Layout = getStructLayout(STy); 654 Ty = STy->getElementType(FieldNo);
|
/freebsd-10.0-release/contrib/llvm/lib/CodeGen/ |
H A D | 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();
|
H A D | ShadowStackGC.cpp | 230 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); local 232 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/freebsd-10.0-release/contrib/llvm/include/llvm/Transforms/Utils/ |
H A D | Local.h | 202 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 203 Size = TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
|
/freebsd-10.0-release/contrib/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) 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()); local 778 if (STy == 0) 790 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1135 if (StructType *STy [all...] |
H A D | SROA.cpp | 1758 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { 1759 if (STy->element_begin() == STy->element_end()) 1761 ElementTy = *STy->element_begin(); 1819 StructType *STy = dyn_cast<StructType>(Ty); 1820 if (!STy) 1823 const StructLayout *SL = TD.getStructLayout(STy); 1829 Type *ElementTy = STy->getElementType(Index); 3175 if (StructType *STy = dyn_cast<StructType>(Ty)) { 3178 for (unsigned Idx = 0, Size = STy [all...] |
/freebsd-10.0-release/contrib/llvm/include/llvm/IR/ |
H A D | Operator.h | 458 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 460 const StructLayout *SL = DL.getStructLayout(STy);
|
/freebsd-10.0-release/contrib/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 | 630 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 633 const StructLayout *SL = TD->getStructLayout(STy); 898 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 901 const StructLayout *SL = DL->getStructLayout(STy); 1515 llvm::StructType *STy = dyn_cast<llvm::StructType>(IndexedType); local 1516 if (STy) { 1520 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1524 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip,
|
/freebsd-10.0-release/contrib/llvm/tools/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); 1141 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1144 return llvm::ConstantStruct::get(STy, Complex); 1163 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1166 return llvm::ConstantStruct::get(STy, Comple [all...] |
H A D | CGCall.cpp | 746 if (llvm::StructType *STy = 748 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1119 if (llvm::StructType *STy = 1121 unsigned Extra = STy->getNumElements()-1; // 1 will be added below. 1335 llvm::StructType *STy = dyn_cast<llvm::StructType>(ArgI.getCoerceToType()); local 1336 if (STy && STy->getNumElements() > 1) { 1337 uint64_t SrcSize = CGM.getDataLayout().getTypeAllocSize(STy); 1343 Ptr = Builder.CreateBitCast(Ptr, llvm::PointerType::getUnqual(STy)); 1345 for (unsigned i = 0, e = STy [all...] |
/freebsd-10.0-release/contrib/llvm/lib/Linker/ |
H A D | LinkModules.cpp | 225 // If DstSTy has no name or has a longer name than STy, then viciously steal 226 // STy's name. 330 StructType *STy = cast<StructType>(Ty); local 333 if (STy->isOpaque()) { 336 DstStructTypesSet.insert(STy); 337 return *Entry = STy; 342 SrcDefinitionsToResolve.push_back(STy); 343 StructType *DTy = StructType::create(STy->getContext());
|
/freebsd-10.0-release/contrib/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 210 StructType *STy = local 217 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|