/external/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 | 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()) { 530 StructType *STy = cast<StructType>(AgTy); local 531 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 532 Params.push_back(STy 662 StructType *STy = cast<StructType>(AgTy); local 790 StructType *STy = cast<StructType>(AgTy); local [all...] |
H A D | DeadArgumentElimination.cpp | 347 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) 348 return STy->getNumElements(); 494 Type *STy = dyn_cast<StructType>(F.getReturnType()); local 518 if (STy) { 672 StructType *STy = dyn_cast<StructType>(RetTy); local 673 if (STy) 678 RetTypes.push_back(STy->getElementType(i)); 703 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked());
|
/external/llvm/lib/Target/ |
H A D | Target.cpp | 96 StructType *STy = unwrap<StructType>(StructTy); local 97 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 102 StructType *STy = unwrap<StructType>(StructTy); local 103 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
H A D | TargetData.cpp | 403 StructLayout *&operator[](StructType *STy) { argument 404 return LayoutInfo[STy]; 607 if (StructType *STy = dyn_cast<StructType>(*TI)) { 614 const StructLayout *Layout = getStructLayout(STy); 620 Ty = STy->getElementType(FieldNo);
|
/external/llvm/lib/VMCore/ |
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 | 122 const StructType *STy = dyn_cast<StructType>(this); local 123 if (STy) { 124 unsigned NumElements = STy->getNumElements(); 126 if (!STy->getElementType(i)->isEmptyTy()) 657 if (StructType *STy = dyn_cast<StructType>(this)) { 660 return STy->getElementType(Idx); 666 if (StructType *STy = dyn_cast<StructType>(this)) { 668 return STy->getElementType(Idx); 674 if (const StructType *STy = dyn_cast<StructType>(this)) { 678 return CU->getZExtValue() < STy [all...] |
H A D | AsmWriter.cpp | 176 StructType *STy = *I; local 179 if (STy->isLiteral()) 182 if (STy->getName().empty()) 183 NumberedTypes[STy] = NextNumber++; 185 *NextToUse++ = STy; 228 StructType *STy = cast<StructType>(Ty); local 230 if (STy->isLiteral()) 231 return printStructBody(STy, OS); 233 if (!STy->getName().empty()) 234 return PrintLLVMName(OS, STy 240 OS << "%\\"type " << STy << '\\"'; local 271 printStructBody(StructType *STy, raw_ostream &OS) argument [all...] |
H A D | Constants.cpp | 1685 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { argument 1686 return getOffsetOf(STy, ConstantInt::get(Type::getInt32Ty(STy->getContext()),
|
H A D | Verifier.cpp | 435 StructType *STy = dyn_cast<StructType>(ATy->getElementType()); local 438 Assert1(STy && STy->getNumElements() == 2 && 439 STy->getTypeAtIndex(0u)->isIntegerTy(32) && 440 STy->getTypeAtIndex(1) == FuncPtrTy,
|
/external/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 210 StructType *STy = local 217 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/external/llvm/lib/CodeGen/ |
H A D | ShadowStackGC.cpp | 230 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); local 232 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/external/llvm/lib/ExecutionEngine/JIT/ |
H A D | JIT.cpp | 497 FunctionType *STy=FunctionType::get(RetTy, false); local 498 Function *Stub = Function::Create(STy, Function::InternalLinkage, "",
|
/external/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 618 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 621 const StructLayout *SL = TD->getStructLayout(STy); 1424 llvm::StructType *STy = llvm::dyn_cast<llvm::StructType>(IndexedType); local 1425 if (STy) { 1429 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1433 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, 1605 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 1606 Offset += TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
|
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...] |
/external/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()) 335 return *Entry = STy; 339 SrcDefinitionsToResolve.push_back(STy); 340 StructType *DTy = StructType::create(STy->getContext());
|
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXISelLowering.cpp | 902 const StructType *STy = dyn_cast<StructType>(PTy->getElementType()); local 903 const std::string TypeName = STy ? STy->getName() : "";
|
H A D | NVPTXAsmPrinter.cpp | 1365 const StructType *STy = dyn_cast<StructType>(Ty); local 1366 if (STy) { 1370 for (unsigned i=0, e=STy->getNumElements(); i != e; i++) { 1371 Type *ETy = STy->getElementType(i);
|
/external/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) 301 if (StructType *STy = dyn_cast<StructType>(V->getType())) 302 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 734 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) 736 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 787 StructType *STy = dyn_cast<StructType>(IVI.getType()); local 788 if (STy == 0) 800 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1145 if (StructType *STy [all...] |
H A D | ScalarReplAggregates.cpp | 2547 StructType *STy = cast<StructType>(Ty); local 2548 const StructLayout *SL = TD.getStructLayout(STy); 2550 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 2557 PrevFieldBitOffset+TD.getTypeSizeInBits(STy->getElementType(i-1)); 2564 if (unsigned EltCount = STy->getNumElements()) { 2566 TD.getTypeSizeInBits(STy->getElementType(EltCount-1));
|
/external/llvm/lib/Transforms/Vectorize/ |
H A D | BBVectorize.cpp | 384 Type *STy = ElemTy->getScalarType(); local 399 return VectorType::get(STy, numElem);
|
/external/clang/lib/CodeGen/ |
H A D | CGBuiltin.cpp | 1561 llvm::Type *STy = llvm::StructType::get(Int32Ty, Int32Ty, NULL); local 1568 Value *LdPtr = Builder.CreateBitCast(Tmp,llvm::PointerType::getUnqual(STy)); 1975 llvm::StructType *STy = cast<llvm::StructType>(F->getReturnType()); local 1979 Args.append(STy->getNumElements(), UndefValue::get(Ty)); 1987 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
|
H A D | CGCall.cpp | 709 if (llvm::StructType *STy = 711 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1031 if (llvm::StructType *STy = 1033 unsigned Extra = STy->getNumElements()-1; // 1 will be added below. 1227 llvm::StructType *STy = dyn_cast<llvm::StructType>(ArgI.getCoerceToType()); local 1228 if (STy && STy->getNumElements() > 1) { 1229 uint64_t SrcSize = CGM.getTargetData().getTypeAllocSize(STy); 1235 Ptr = Builder.CreateBitCast(Ptr, llvm::PointerType::getUnqual(STy)); 1237 for (unsigned i = 0, e = STy [all...] |
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); 1124 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1127 return llvm::ConstantStruct::get(STy, Complex); 1145 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1148 return llvm::ConstantStruct::get(STy, Comple [all...] |