/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 | 182 StructType *STy = StructTypes[i]; local 183 if (STy->isLiteral() || STy->getName().empty()) continue; 185 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) 188 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()) { 533 StructType *STy = cast<StructType>(AgTy); local 534 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 535 Params.push_back(STy 666 StructType *STy = cast<StructType>(AgTy); local 796 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());
|
H A D | GlobalOpt.cpp | 286 if (StructType *STy = dyn_cast<StructType>(Agg->getType())) { 287 if (IdxV < STy->getNumElements()) 288 return Constant::getNullValue(STy->getElementType(IdxV)); 289 } else if (SequentialType *STy = 291 return Constant::getNullValue(STy->getElementType()); 294 if (StructType *STy = dyn_cast<StructType>(Agg->getType())) { 295 if (IdxV < STy->getNumElements()) 296 return UndefValue::get(STy->getElementType(IdxV)); 297 } else if (SequentialType *STy = 299 return UndefValue::get(STy 1299 StructType *STy = cast<StructType>(MAT); local [all...] |
/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 | 338 StructLayout *&operator[](StructType *STy) { argument 339 return LayoutInfo[STy]; 542 if (StructType *STy = dyn_cast<StructType>(*TI)) { 549 const StructLayout *Layout = getStructLayout(STy); 555 Ty = STy->getElementType(FieldNo);
|
/external/llvm/lib/VMCore/ |
H A D | InlineAsm.cpp | 285 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); local 286 if (STy == 0 || STy->getNumElements() != NumOutputs)
|
H A D | Type.cpp | 120 const StructType *STy = dyn_cast<StructType>(this); local 121 if (STy) { 122 unsigned NumElements = STy->getNumElements(); 124 if (!STy->getElementType(i)->isEmptyTy()) 577 if (StructType *STy = dyn_cast<StructType>(this)) { 580 return STy->getElementType(Idx); 586 if (StructType *STy = dyn_cast<StructType>(this)) { 588 return STy->getElementType(Idx); 594 if (const StructType *STy = dyn_cast<StructType>(this)) { 598 return CU->getZExtValue() < STy [all...] |
H A D | AsmWriter.cpp | 171 StructType *STy = *I; local 174 if (STy->isLiteral()) 177 if (STy->getName().empty()) 178 NumberedTypes[STy] = NextNumber++; 180 *NextToUse++ = STy; 222 StructType *STy = cast<StructType>(Ty); local 224 if (STy->isLiteral()) 225 return printStructBody(STy, OS); 227 if (!STy->getName().empty()) 228 return PrintLLVMName(OS, STy 234 OS << "%\\"type 0x" << STy << '\\"'; local 265 printStructBody(StructType *STy, raw_ostream &OS) argument [all...] |
H A D | Constants.cpp | 1543 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) { argument 1544 return getOffsetOf(STy, ConstantInt::get(Type::getInt32Ty(STy->getContext()),
|
H A D | Verifier.cpp | 440 StructType *STy = dyn_cast<StructType>(ATy->getElementType()); local 443 Assert1(STy && STy->getNumElements() == 2 && 444 STy->getTypeAtIndex(0u)->isIntegerTy(32) && 445 STy->getTypeAtIndex(1) == FuncPtrTy,
|
/external/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 178 StructType *STy = local 185 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/external/llvm/lib/CodeGen/ |
H A D | ShadowStackGC.cpp | 231 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); local 233 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/external/llvm/lib/ExecutionEngine/JIT/ |
H A D | JIT.cpp | 491 FunctionType *STy=FunctionType::get(RetTy, false); local 492 Function *Stub = Function::Create(STy, Function::InternalLinkage, "",
|
/external/llvm/lib/Linker/ |
H A D | LinkModules.cpp | 195 // If DstSTy has no name or has a longer name than STy, then viciously steal 196 // STy's name. 299 StructType *STy = cast<StructType>(Ty); local 302 if (STy->isOpaque()) 303 return *Entry = STy; 307 DefinitionsToResolve.push_back(STy); 308 return *Entry = StructType::create(STy->getContext());
|
/external/llvm/lib/Analysis/ |
H A D | ScalarEvolutionExpander.cpp | 430 while (StructType *STy = dyn_cast<StructType>(ElTy)) { 433 if (STy->getNumElements() == 0) break; 440 const StructLayout &SL = *SE.TD->getStructLayout(STy); 446 ElTy = STy->getTypeAtIndex(ElIdx); 460 if (U->isOffsetOf(CTy, FieldNo) && CTy == STy) { 463 STy->getTypeAtIndex(cast<ConstantInt>(FieldNo)->getZExtValue()); 475 ElTy = STy->getTypeAtIndex(0u); 1067 Type *STy = S->getType(); local 1068 Type *IntTy = SE.getEffectiveSCEVType(STy); 1111 Type *ExpandTy = PostLoopScale ? IntTy : STy; [all...] |
H A D | ValueTracking.cpp | 562 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 565 const StructLayout *SL = TD->getStructLayout(STy); 1322 llvm::StructType *STy = llvm::dyn_cast<llvm::StructType>(IndexedType); local 1323 if (STy) { 1327 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1331 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, 1506 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 1507 Offset += TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | SCCP.cpp | 244 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { 246 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 305 if (StructType *STy = dyn_cast<StructType>(V->getType())) 306 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 788 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) 790 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 841 StructType *STy = dyn_cast<StructType>(IVI.getType()); local 842 if (STy == 0) 854 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1319 if (StructType *STy [all...] |
H A D | ScalarReplAggregates.cpp | 2394 StructType *STy = cast<StructType>(Ty); local 2395 const StructLayout *SL = TD.getStructLayout(STy); 2397 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 2404 PrevFieldBitOffset+TD.getTypeSizeInBits(STy->getElementType(i-1)); 2411 if (unsigned EltCount = STy->getNumElements()) { 2413 TD.getTypeSizeInBits(STy->getElementType(EltCount-1));
|
/external/clang/lib/CodeGen/ |
H A D | CGBuiltin.cpp | 1291 llvm::Type *STy = llvm::StructType::get(Int32Ty, Int32Ty, NULL); local 1298 Value *LdPtr = Builder.CreateBitCast(Tmp,llvm::PointerType::getUnqual(STy)); 1614 llvm::StructType *STy = cast<llvm::StructType>(F->getReturnType()); local 1618 Args.append(STy->getNumElements(), UndefValue::get(Ty)); 1626 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
|
H A D | CGExprConstant.cpp | 437 llvm::StructType *STy = 442 if (ILESTy->isLayoutIdentical(STy)) 443 STy = ILESTy; 447 llvm::ConstantStruct::get(STy, Builder.Elements); 556 llvm::StructType* STy = local 558 return llvm::ConstantStruct::get(STy, Elts); 755 llvm::StructType *STy = 757 return llvm::ConstantStruct::get(STy, Complex); 1024 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local 1027 return llvm::ConstantStruct::get(STy, Comple 1045 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), local [all...] |
H A D | CodeGenModule.cpp | 1766 llvm::StructType *STy = local 1816 C = llvm::ConstantStruct::get(STy, Fields);
|
H A D | CGDebugInfo.cpp | 981 llvm::Value *STy = getOrCreateType(Context.IntTy, Unit); local 982 llvm::DIArray SElements = DBuilder.getOrCreateArray(STy);
|
/external/llvm/lib/Target/CBackend/ |
H A D | CBackend.cpp | 507 StructType *STy = cast<StructType>(Ty); local 511 return Out << getStructName(STy) << ' ' << NameSoFar; 515 for (StructType::element_iterator I = STy->element_begin(), 516 E = STy->element_end(); I != E; ++I) { 522 if (STy->isPacked())
|