/freebsd-9.3-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-9.3-release/contrib/llvm/lib/Target/ |
H A D | Target.cpp | 130 StructType *STy = unwrap<StructType>(StructTy); local 131 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 136 StructType *STy = unwrap<StructType>(StructTy); local 137 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
/freebsd-9.3-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 | 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 | 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()) { 529 StructType *STy = cast<StructType>(AgTy); local 530 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 531 Params.push_back(STy 661 StructType *STy = cast<StructType>(AgTy); local 792 StructType *STy = cast<StructType>(AgTy); local [all...] |
H A D | DeadArgumentElimination.cpp | 416 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) 417 return STy->getNumElements(); 563 Type *STy = dyn_cast<StructType>(F.getReturnType()); local 587 if (STy) { 799 StructType *STy = dyn_cast<StructType>(RetTy); local 800 if (STy) 805 RetTypes.push_back(STy->getElementType(i)); 830 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked());
|
H A D | GlobalOpt.cpp | 126 SequentialType *STy = cast<SequentialType>(Ty); local 127 Types.push_back(STy->getElementType()); 131 StructType *STy = cast<StructType>(Ty); local 132 if (STy->isOpaque()) return true; 133 for (StructType::element_iterator I = STy->element_begin(), 134 E = STy->element_end(); I != E; ++I) { 486 if (StructType *STy = dyn_cast<StructType>(Ty)) { 487 NewGlobals.reserve(STy->getNumElements()); 488 const StructLayout &Layout = *TD.getStructLayout(STy); 489 for (unsigned i = 0, e = STy 1284 StructType *STy = cast<StructType>(MAT); local [all...] |
/freebsd-9.3-release/contrib/llvm/lib/IR/ |
H A D | TypeFinder.cpp | 107 if (StructType *STy = dyn_cast<StructType>(Ty)) 108 if (!OnlyNamed || STy->hasName()) 109 StructTypes.push_back(STy);
|
H A D | 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 1903 isIndexInRangeOfSequentialType(const SequentialType *STy, const ConstantInt *CI) argument [all...] |
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()) 628 if (StructType *STy = dyn_cast<StructType>(this)) { 632 return STy->getElementType(Idx); 638 if (StructType *STy = dyn_cast<StructType>(this)) { 640 return STy->getElementType(Idx); 646 if (const StructType *STy = dyn_cast<StructType>(this)) { 655 return CU && CU->getZExtValue() < STy [all...] |
H A D | AsmWriter.cpp | 175 StructType *STy = *I; local 178 if (STy->isLiteral()) 181 if (STy->getName().empty()) 182 NumberedTypes[STy] = NextNumber++; 184 *NextToUse++ = STy; 227 StructType *STy = cast<StructType>(Ty); local 229 if (STy->isLiteral()) 230 return printStructBody(STy, OS); 232 if (!STy->getName().empty()) 233 return PrintLLVMName(OS, STy 239 OS << "%\\"type " << STy << '\\"'; local 270 printStructBody(StructType *STy, raw_ostream &OS) argument [all...] |
H A D | DataLayout.cpp | 425 StructLayout *&operator[](StructType *STy) { 426 return LayoutInfo[STy]; 649 if (StructType *STy = dyn_cast<StructType>(*TI)) { 656 const StructLayout *Layout = getStructLayout(STy); 662 Ty = STy->getElementType(FieldNo);
|
/freebsd-9.3-release/contrib/llvm/include/llvm/Transforms/Utils/ |
H A D | Local.h | 211 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 216 Size = TD.getStructLayout(STy)->getElementOffset(OpValue);
|
/freebsd-9.3-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-9.3-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 | 1230 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { 1231 if (STy->element_begin() == STy->element_end()) 1233 ElementTy = *STy->element_begin(); 1291 StructType *STy = dyn_cast<StructType>(Ty); local 1292 if (!STy) 1295 const StructLayout *SL = DL.getStructLayout(STy); 1301 Type *ElementTy = STy->getElementType(Index); 1589 Type *STy = SI->getValueOperand()->getType(); 1592 assert(STy 2983 StructType *STy = dyn_cast<StructType>(Ty); local [all...] |
/freebsd-9.3-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-9.3-release/contrib/llvm/tools/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 510 llvm::StructType *STy = local 515 if (ValSTy->isLayoutIdentical(STy)) 516 STy = ValSTy; 519 llvm::Constant *Result = llvm::ConstantStruct::get(STy, Elements); 631 llvm::StructType* STy = local 633 return llvm::ConstantStruct::get(STy, Elts); 1100 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1103 return llvm::ConstantStruct::get(STy, Complex); 1122 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1125 return llvm::ConstantStruct::get(STy, Comple [all...] |
H A D | CGCall.cpp | 767 if (llvm::StructType *STy = 769 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1147 if (llvm::StructType *STy = 1149 unsigned Extra = STy->getNumElements()-1; // 1 will be added below. 1371 llvm::StructType *STy = dyn_cast<llvm::StructType>(ArgI.getCoerceToType()); local 1372 if (STy && STy->getNumElements() > 1) { 1373 uint64_t SrcSize = CGM.getDataLayout().getTypeAllocSize(STy); 1379 Ptr = Builder.CreateBitCast(Ptr, llvm::PointerType::getUnqual(STy)); 1381 for (unsigned i = 0, e = STy [all...] |
/freebsd-9.3-release/contrib/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()) { 337 DstStructTypesSet.insert(STy); 338 return *Entry = STy; 343 SrcDefinitionsToResolve.push_back(STy); 344 StructType *DTy = StructType::create(STy->getContext());
|
/freebsd-9.3-release/contrib/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 210 StructType *STy = local 217 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/freebsd-9.3-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); 1151 Type *STy = S->getType(); local 1152 Type *IntTy = SE.getEffectiveSCEVType(STy); 1192 Type *ExpandTy = PostLoopScale ? IntTy : STy; [all...] |
H A D | ValueTracking.cpp | 631 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 645 const StructLayout *SL = TD->getStructLayout(STy); 939 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 942 const StructLayout *SL = DL->getStructLayout(STy); 1556 llvm::StructType *STy = dyn_cast<llvm::StructType>(IndexedType); local 1557 if (STy) { 1561 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1565 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip,
|