/external/llvm/include/llvm/IR/ |
D | GetElementPtrTypeIterator.h | 31 PointerIntPair<Type *, 1> CurTy; variable 39 I.CurTy.setPointer(Ty); in begin() 40 I.CurTy.setInt(true); in begin() 59 if (CurTy.getInt()) 60 return CurTy.getPointer()->getPointerTo(AddrSpace); 61 return CurTy.getPointer(); 65 if (CurTy.getInt()) in getIndexedType() 66 return CurTy.getPointer(); in getIndexedType() 67 CompositeType *CT = cast<CompositeType>(CurTy.getPointer()); in getIndexedType() 78 if (CurTy.getInt()) { [all …]
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | GetElementPtrTypeIterator.h | 36 PointerUnion<StructType *, Type *> CurTy; variable 45 I.CurTy = Ty; in begin() 69 if (auto *T = CurTy.dyn_cast<Type *>()) in getIndexedType() 71 return CurTy.get<StructType *>()->getTypeAtIndex(getOperand()); in getIndexedType() 79 CurTy = ATy->getElementType(); 82 CurTy = VTy->getElementType(); 88 CurTy = dyn_cast<StructType>(Ty); 112 bool isStruct() const { return CurTy.is<StructType *>(); } in isStruct() 113 bool isSequential() const { return CurTy.is<Type *>(); } in isSequential() 115 StructType *getStructType() const { return CurTy.get<StructType *>(); } in getStructType() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | GetElementPtrTypeIterator.h | 36 PointerUnion<StructType *, Type *> CurTy; variable 45 I.CurTy = Ty; in begin() 69 if (auto *T = CurTy.dyn_cast<Type *>()) in getIndexedType() 71 return CurTy.get<StructType *>()->getTypeAtIndex(getOperand()); in getIndexedType() 79 CurTy = STy->getElementType(); 82 CurTy = dyn_cast<StructType>(Ty); 106 bool isStruct() const { return CurTy.is<StructType *>(); } in isStruct() 107 bool isSequential() const { return CurTy.is<Type *>(); } in isSequential() 109 StructType *getStructType() const { return CurTy.get<StructType *>(); } in getStructType() 112 return CurTy.dyn_cast<StructType *>(); in getStructTypeOrNull()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 2873 Type *CurTy = Type::getInt32Ty(Context); in parseConstants() local 2903 V = UndefValue::get(CurTy); in parseConstants() 2912 CurTy = TypeList[Record[0]]; in parseConstants() 2915 V = Constant::getNullValue(CurTy); in parseConstants() 2918 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants() 2920 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0])); in parseConstants() 2923 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants() 2927 readWideAPInt(Record, cast<IntegerType>(CurTy)->getBitWidth()); in parseConstants() 2935 if (CurTy->isHalfTy()) in parseConstants() 2938 else if (CurTy->isFloatTy()) in parseConstants() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 2332 Type *CurTy = Type::getInt32Ty(Context); in parseConstants() local 2369 V = UndefValue::get(CurTy); in parseConstants() 2379 CurTy = flattenPointerTypes(CurFullTy); in parseConstants() 2382 if (CurTy->isVoidTy() || CurTy->isFunctionTy() || CurTy->isLabelTy()) in parseConstants() 2384 V = Constant::getNullValue(CurTy); in parseConstants() 2387 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants() 2389 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0])); in parseConstants() 2392 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants() 2396 readWideAPInt(Record, cast<IntegerType>(CurTy)->getBitWidth()); in parseConstants() 2404 if (CurTy->isHalfTy()) in parseConstants() [all …]
|
/external/llvm-project/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 2340 Type *CurTy = Type::getInt32Ty(Context); in parseConstants() local 2411 V = UndefValue::get(CurTy); in parseConstants() 2414 V = PoisonValue::get(CurTy); in parseConstants() 2424 CurTy = flattenPointerTypes(CurFullTy); in parseConstants() 2427 if (CurTy->isVoidTy() || CurTy->isFunctionTy() || CurTy->isLabelTy()) in parseConstants() 2429 V = Constant::getNullValue(CurTy); in parseConstants() 2432 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants() 2434 V = ConstantInt::get(CurTy, decodeSignRotatedValue(Record[0])); in parseConstants() 2437 if (!CurTy->isIntegerTy() || Record.empty()) in parseConstants() 2441 readWideAPInt(Record, cast<IntegerType>(CurTy)->getBitWidth()); in parseConstants() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1403 Type *CurTy = nullptr; in visitGetElementPtrInst() local 1417 if (J > 1 && CurTy->isStructTy()) in visitGetElementPtrInst() 1435 CurTy = Op1->getSourceElementType(); in visitGetElementPtrInst() 1436 } else if (CompositeType *CT = dyn_cast<CompositeType>(CurTy)) { in visitGetElementPtrInst() 1437 CurTy = CT->getTypeAtIndex(Op1->getOperand(J)); in visitGetElementPtrInst() 1439 CurTy = nullptr; in visitGetElementPtrInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1756 Type *CurTy = nullptr; in visitGetElementPtrInst() local 1771 assert(CurTy && "No current type?"); in visitGetElementPtrInst() 1772 if (CurTy->isStructTy()) in visitGetElementPtrInst() 1791 CurTy = Op1->getSourceElementType(); in visitGetElementPtrInst() 1792 } else if (auto *CT = dyn_cast<CompositeType>(CurTy)) { in visitGetElementPtrInst() 1793 CurTy = CT->getTypeAtIndex(Op1->getOperand(J)); in visitGetElementPtrInst() 1795 CurTy = nullptr; in visitGetElementPtrInst()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1926 Type *CurTy = nullptr; in visitGetElementPtrInst() local 1941 assert(CurTy && "No current type?"); in visitGetElementPtrInst() 1942 if (CurTy->isStructTy()) in visitGetElementPtrInst() 1961 CurTy = Op1->getSourceElementType(); in visitGetElementPtrInst() 1963 CurTy = in visitGetElementPtrInst() 1964 GetElementPtrInst::getTypeAtIndex(CurTy, Op1->getOperand(J)); in visitGetElementPtrInst()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 4085 Type *CurTy = UI->getType(); in hasSameExtUse() local 4087 if (CurTy == ExtTy) in hasSameExtUse() 4107 CurTy->getScalarType()->getIntegerBitWidth()) { in hasSameExtUse() 4108 NarrowTy = CurTy; in hasSameExtUse() 4112 LargeTy = CurTy; in hasSameExtUse()
|
/external/clang/lib/AST/ |
D | Type.cpp | 243 const Type *CurTy = Qs.strip(Cur); in getSplitDesugaredType() local 244 switch (CurTy->getTypeClass()) { in getSplitDesugaredType() 248 const Class##Type *Ty = cast<Class##Type>(CurTy); \ in getSplitDesugaredType()
|
D | VTableBuilder.cpp | 2697 QualType CurTy = Element.Base->getType(); in ComputeThisOffset() local 2699 *CurRD = CurTy->getAsCXXRecordDecl(); in ComputeThisOffset()
|
/external/llvm-project/clang/lib/AST/ |
D | Type.cpp | 441 const Type *CurTy = Qs.strip(Cur); in getSplitDesugaredType() local 442 switch (CurTy->getTypeClass()) { in getSplitDesugaredType() 446 const auto *Ty = cast<Class##Type>(CurTy); \ in getSplitDesugaredType()
|
D | VTableBuilder.cpp | 2718 QualType CurTy = Element.Base->getType(); in ComputeThisOffset() local 2720 *CurRD = CurTy->getAsCXXRecordDecl(); in ComputeThisOffset()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 5183 Type *CurTy = UI->getType(); in hasSameExtUse() local 5185 if (CurTy == ExtTy) in hasSameExtUse() 5205 CurTy->getScalarType()->getIntegerBitWidth()) { in hasSameExtUse() 5206 NarrowTy = CurTy; in hasSameExtUse() 5210 LargeTy = CurTy; in hasSameExtUse()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 5469 Type *CurTy = UI->getType(); in hasSameExtUse() local 5471 if (CurTy == ExtTy) in hasSameExtUse() 5491 CurTy->getScalarType()->getIntegerBitWidth()) { in hasSameExtUse() 5492 NarrowTy = CurTy; in hasSameExtUse() 5496 LargeTy = CurTy; in hasSameExtUse()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 3422 Type *CurTy = GEP->getType(); in getGEPExpr() local 3427 if (StructType *STy = dyn_cast<StructType>(CurTy)) { in getGEPExpr() 3435 CurTy = STy->getTypeAtIndex(Index); in getGEPExpr() 3439 assert(isa<PointerType>(CurTy) && in getGEPExpr() 3441 CurTy = GEP->getSourceElementType(); in getGEPExpr() 3444 CurTy = GetElementPtrInst::getTypeAtIndex(CurTy, (uint64_t)0); in getGEPExpr() 3447 const SCEV *ElementSize = getSizeOfExpr(IntIdxTy, CurTy); in getGEPExpr()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 2989 Type *CurTy = PointerType::getUnqual(PointeeType); in getGEPExpr() local 2992 if (StructType *STy = dyn_cast<StructType>(CurTy)) { in getGEPExpr() 3002 CurTy = STy->getTypeAtIndex(Index); in getGEPExpr() 3005 CurTy = cast<SequentialType>(CurTy)->getElementType(); in getGEPExpr() 3007 const SCEV *ElementSize = getSizeOfExpr(IntPtrTy, CurTy); in getGEPExpr()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizerHelper.cpp | 1485 LLT CurTy = MRI.getType(SrcReg); in widenScalar() local 1491 APInt::getOneBitSet(WideTy.getSizeInBits(), CurTy.getSizeInBits()); in widenScalar() 1502 unsigned SizeDiff = WideTy.getSizeInBits() - CurTy.getSizeInBits(); in widenScalar()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 3510 Type *CurTy = ArrayType::get(GEP->getSourceElementType(), 0); in getGEPExpr() local 3513 if (StructType *STy = dyn_cast<StructType>(CurTy)) { in getGEPExpr() 3523 CurTy = STy->getTypeAtIndex(Index); in getGEPExpr() 3526 CurTy = cast<SequentialType>(CurTy)->getElementType(); in getGEPExpr() 3528 const SCEV *ElementSize = getSizeOfExpr(IntIdxTy, CurTy); in getGEPExpr()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 1303 Type *CurTy = cast<Instruction>(VL[j])->getOperand(0)->getType(); in buildTree_rec() local 1304 if (Ty0 != CurTy) { in buildTree_rec()
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizerHelper.cpp | 1861 LLT CurTy = MRI.getType(SrcReg); in widenScalar() local 1867 APInt::getOneBitSet(WideTy.getSizeInBits(), CurTy.getSizeInBits()); in widenScalar() 1878 unsigned SizeDiff = WideTy.getSizeInBits() - CurTy.getSizeInBits(); in widenScalar()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 2880 Type *CurTy = cast<Instruction>(V)->getOperand(0)->getType(); in buildTree_rec() local 2881 if (Ty0 != CurTy) { in buildTree_rec()
|
/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 3041 Type *CurTy = cast<Instruction>(V)->getOperand(0)->getType(); in buildTree_rec() local 3042 if (Ty0 != CurTy) { in buildTree_rec()
|