/external/llvm/lib/Target/ |
Target.cpp | 96 StructType *STy = unwrap<StructType>(StructTy); 97 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 102 StructType *STy = unwrap<StructType>(StructTy); 103 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
TargetData.cpp | 403 StructLayout *&operator[](StructType *STy) { 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/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 | 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); 534 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 535 Params.push_back(STy->getElementType(i)) [all...] |
StripSymbols.cpp | 182 StructType *STy = StructTypes[i]; 183 if (STy->isLiteral() || STy->getName().empty()) continue; 185 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) 188 STy->setName("");
|
DeadArgumentElimination.cpp | 347 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) 348 return STy->getNumElements(); 494 Type *STy = dyn_cast<StructType>(F.getReturnType()); 518 if (STy) { 672 StructType *STy = dyn_cast<StructType>(RetTy); 673 if (STy) 678 RetTypes.push_back(STy->getElementType(i)); 703 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); [all...] |
GlobalOpt.cpp | 511 if (StructType *STy = dyn_cast<StructType>(Ty)) { 512 NewGlobals.reserve(STy->getNumElements()); 513 const StructLayout &Layout = *TD.getStructLayout(STy); 514 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 517 GlobalVariable *NGV = new GlobalVariable(STy->getElementType(i), false, 530 if (NewAlign > TD.getABITypeAlignment(STy->getElementType(i))) 533 } else if (SequentialType *STy = dyn_cast<SequentialType>(Ty)) { 535 if (ArrayType *ATy = dyn_cast<ArrayType>(STy)) 538 NumElements = cast<VectorType>(STy)->getNumElements(); 544 uint64_t EltSize = TD.getTypeAllocSize(STy->getElementType()) [all...] |
/external/llvm/lib/CodeGen/ |
Analysis.cpp | 44 if (StructType *STy = dyn_cast<StructType>(Ty)) { 45 for (StructType::element_iterator EB = STy->element_begin(), 47 EE = STy->element_end(); 81 if (StructType *STy = dyn_cast<StructType>(Ty)) { 82 const StructLayout *SL = TLI.getTargetData()->getStructLayout(STy); 83 for (StructType::element_iterator EB = STy->element_begin(), 85 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/VMCore/ |
InlineAsm.cpp | 285 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); 286 if (STy == 0 || STy->getNumElements() != NumOutputs)
|
Type.cpp | 122 const StructType *STy = dyn_cast<StructType>(this); 123 if (STy) { 124 unsigned NumElements = STy->getNumElements(); 126 if (!STy->getElementType(i)->isEmptyTy()) 647 if (StructType *STy = dyn_cast<StructType>(this)) { 650 return STy->getElementType(Idx); 656 if (StructType *STy = dyn_cast<StructType>(this)) { 658 return STy->getElementType(Idx); 664 if (const StructType *STy = dyn_cast<StructType>(this)) { 668 return CU->getZExtValue() < STy->getNumElements() [all...] |
ConstantFold.cpp | 113 if (StructType *STy = dyn_cast<StructType>(ElTy)) { 114 if (STy->getNumElements() == 0) break; 115 ElTy = STy->getElementType(0); 117 } else if (SequentialType *STy = 120 ElTy = STy->getElementType(); 341 if (StructType *STy = dyn_cast<StructType>(Ty)) 342 if (!STy->isPacked()) { 343 unsigned NumElems = STy->getNumElements(); 349 getFoldedSizeOf(STy->getElementType(0), DestTy, true); 353 getFoldedSizeOf(STy->getElementType(i), DestTy, true)) [all...] |
AsmWriter.cpp | 170 StructType *STy = *I; 173 if (STy->isLiteral()) 176 if (STy->getName().empty()) 177 NumberedTypes[STy] = NextNumber++; 179 *NextToUse++ = STy; 222 StructType *STy = cast<StructType>(Ty); 224 if (STy->isLiteral()) 225 return printStructBody(STy, OS); 227 if (!STy->getName().empty()) 228 return PrintLLVMName(OS, STy->getName(), LocalPrefix) [all...] |
/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) 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()); 788 if (STy == 0) 800 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { [all...] |
/external/clang/lib/CodeGen/ |
CGExprConstant.cpp | 560 llvm::StructType *STy = 565 if (ValSTy->isLayoutIdentical(STy)) 566 STy = ValSTy; 569 llvm::Constant *Result = llvm::ConstantStruct::get(STy, Elements); 681 llvm::StructType* STy = 683 return llvm::ConstantStruct::get(STy, Elts); [all...] |
CGCall.cpp | 659 if (llvm::StructType *STy = 661 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { [all...] |
TargetInfo.cpp | [all...] |
/external/llvm/lib/Analysis/ |
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); [all...] |
ValueTracking.cpp | 618 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 621 const StructLayout *SL = TD->getStructLayout(STy); [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | 353 if (StructType *STy = dyn_cast<StructType>(SrcPTy)) { 354 if (!STy->getNumElements()) /* Struct can be empty {} */ 357 SrcPTy = STy->getElementType(0);
|
/external/llvm/lib/Transforms/Utils/ |
AddrModeMatcher.cpp | 225 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 226 const StructLayout *SL = TD->getStructLayout(STy);
|
/external/llvm/tools/bugpoint/ |
ExtractFunction.cpp | 210 StructType *STy = 217 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/external/llvm/lib/Linker/ |
LinkModules.cpp | 224 // If DstSTy has no name or has a longer name than STy, then viciously steal 225 // STy's name. 329 StructType *STy = cast<StructType>(Ty); 332 if (STy->isOpaque()) 333 return *Entry = STy; 337 SrcDefinitionsToResolve.push_back(STy); 338 StructType *DTy = StructType::create(STy->getContext()); [all...] |
/external/llvm/lib/Bitcode/Writer/ |
ValueEnumerator.cpp | 362 if (StructType *STy = dyn_cast<StructType>(Ty)) 363 if (!STy->isLiteral())
|
/external/llvm/lib/ExecutionEngine/JIT/ |
JIT.cpp | 492 FunctionType *STy=FunctionType::get(RetTy, false); 493 Function *Stub = Function::Create(STy, Function::InternalLinkage, "",
|