/external/llvm/lib/Transforms/Utils/ |
MetaRenamer.cpp | 97 StructType *STy = StructTypes[i]; 98 if (STy->isLiteral() || STy->getName().empty()) continue; 101 STy->setName((Twine("struct.") + metaNames[prng.rand() %
|
/external/llvm/lib/IR/ |
InlineAsm.cpp | 276 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); 277 if (!STy || STy->getNumElements() != NumOutputs)
|
Value.cpp | 493 Type *STy = BC->getSrcTy()->getPointerElementType(), 495 if (STy->isSized() && DTy->isSized() && 496 (DL->getTypeStoreSize(STy) >= 498 (DL->getABITypeAlignment(STy) >=
|
Type.cpp | 105 const StructType *STy = dyn_cast<StructType>(this); 106 if (STy) { 107 unsigned NumElements = STy->getNumElements(); 109 if (!STy->getElementType(i)->isEmptyTy()) 625 if (StructType *STy = dyn_cast<StructType>(this)) { 629 return STy->getElementType(Idx); 635 if (StructType *STy = dyn_cast<StructType>(this)) { 637 return STy->getElementType(Idx); 643 if (const StructType *STy = dyn_cast<StructType>(this)) { 652 return CU && CU->getZExtValue() < STy->getNumElements() [all...] |
AsmWriter.cpp | 178 StructType *STy = *I; 181 if (STy->isLiteral()) 184 if (STy->getName().empty()) 185 NumberedTypes[STy] = NextNumber++; 187 *NextToUse++ = STy; 230 StructType *STy = cast<StructType>(Ty); 232 if (STy->isLiteral()) 233 return printStructBody(STy, OS); 235 if (!STy->getName().empty()) 236 return PrintLLVMName(OS, STy->getName(), LocalPrefix) [all...] |
Verifier.cpp | 420 StructType *STy = dyn_cast<StructType>(ATy->getElementType()); 424 Assert1(STy && (STy->getNumElements() == 2 || 425 STy->getNumElements() == 3) && 426 STy->getTypeAtIndex(0u)->isIntegerTy(32) && 427 STy->getTypeAtIndex(1) == FuncPtrTy, 429 if (STy->getNumElements() == 3) { 430 Type *ETy = STy->getTypeAtIndex(2); [all...] |
/external/llvm/lib/Target/ |
Target.cpp | 124 StructType *STy = unwrap<StructType>(StructTy); 125 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 130 StructType *STy = unwrap<StructType>(StructTy); 131 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
/external/llvm/lib/Transforms/IPO/ |
IPConstantPropagation.cpp | 171 StructType *STy = dyn_cast<StructType>(F.getReturnType()); 172 if (STy) 173 for (unsigned i = 0, e = STy->getNumElements(); i < e; ++i) 174 RetVals.push_back(UndefValue::get(STy->getElementType(i))); 189 if (!STy) 239 if (!STy) {
|
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("");
|
ArgumentPromotion.cpp | 169 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 170 if (maxElements > 0 && STy->getNumElements() > maxElements) { 179 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 180 if (!STy->getElementType(i)->isSingleValueType()) { 199 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 201 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 202 if (STy->getElementType(i) == PtrArg->getType()) { 540 StructType *STy = cast<StructType>(AgTy); 541 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 542 Params.push_back(STy->getElementType(i)) [all...] |
DeadArgumentElimination.cpp | 381 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) 382 return STy->getNumElements(); 533 Type *STy = dyn_cast<StructType>(F.getReturnType()); 556 if (STy) { 767 StructType *STy = dyn_cast<StructType>(RetTy); 768 if (STy) 773 RetTypes.push_back(STy->getElementType(i)); 798 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked()); [all...] |
GlobalOpt.cpp | 128 SequentialType *STy = cast<SequentialType>(Ty); 129 Types.push_back(STy->getElementType()); 133 StructType *STy = cast<StructType>(Ty); 134 if (STy->isOpaque()) return true; 135 for (StructType::element_iterator I = STy->element_begin(), 136 E = STy->element_end(); I != E; ++I) { 489 if (StructType *STy = dyn_cast<StructType>(Ty)) { 490 NewGlobals.reserve(STy->getNumElements()); 491 const StructLayout &Layout = *DL.getStructLayout(STy); 492 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) [all...] |
/external/llvm/unittests/Linker/ |
LinkModulesTest.cpp | 137 StructType *STy = StructType::create(Ctx, PointerType::get(FTy, 0)); 140 new GlobalVariable(*InternalM, STy, false /*=isConstant*/, 143 GV->setInitializer(ConstantStruct::get(STy, F));
|
/external/llvm/tools/bugpoint/ |
ExtractFunction.cpp | 211 StructType *STy = 218 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/external/llvm/lib/CodeGen/ |
ShadowStackGC.cpp | 231 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); 233 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/external/llvm/lib/ExecutionEngine/JIT/ |
JIT.cpp | 345 FunctionType *STy=FunctionType::get(RetTy, false); 346 Function *Stub = Function::Create(STy, Function::InternalLinkage, "",
|
/external/clang/include/clang/Sema/ |
Overload.h | 685 auto STy = Surrogate->getConversionType(); 686 while (STy->isPointerType() || STy->isReferenceType()) 687 STy = STy->getPointeeType(); 688 return STy->getAs<FunctionProtoType>()->getNumParams();
|
/external/llvm/lib/Analysis/ |
ScalarEvolutionExpander.cpp | 455 while (StructType *STy = dyn_cast<StructType>(ElTy)) { 458 if (STy->getNumElements() == 0) break; 465 const StructLayout &SL = *SE.DL->getStructLayout(STy); 471 ElTy = STy->getTypeAtIndex(ElIdx); 485 if (U->isOffsetOf(CTy, FieldNo) && CTy == STy) { 488 STy->getTypeAtIndex(cast<ConstantInt>(FieldNo)->getZExtValue()); 500 ElTy = STy->getTypeAtIndex(0u); [all...] |
ValueTracking.cpp | 617 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 633 const StructLayout *SL = TD->getStructLayout(STy); [all...] |
/external/llvm/lib/Linker/ |
LinkModules.cpp | 229 // If DstSTy has no name or has a longer name than STy, then viciously steal 230 // STy's name. 334 StructType *STy = cast<StructType>(Ty); 337 if (STy->isOpaque()) { 340 DstStructTypesSet.insert(STy); 341 return *Entry = STy; 346 SrcDefinitionsToResolve.push_back(STy); 347 StructType *DTy = StructType::create(STy->getContext()); [all...] |
/external/llvm/lib/Transforms/Scalar/ |
SCCP.cpp | 241 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { 243 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 295 if (StructType *STy = dyn_cast<StructType>(V->getType())) 296 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 726 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) 728 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 779 StructType *STy = dyn_cast<StructType>(IVI.getType()); 780 if (!STy) 792 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { [all...] |
ScalarReplAggregates.cpp | [all...] |
/external/clang/lib/CodeGen/ |
CGExprConstant.cpp | 510 llvm::StructType *STy = 515 if (ValSTy->isLayoutIdentical(STy)) 516 STy = ValSTy; 519 llvm::Constant *Result = llvm::ConstantStruct::get(STy, Elements); 631 llvm::StructType* STy = 633 return llvm::ConstantStruct::get(STy, Elts); [all...] |
CGCall.cpp | [all...] |
/external/llvm/lib/Target/NVPTX/ |
NVPTXAsmPrinter.cpp | [all...] |