/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | Utils.cpp | 560 LLT llvm::getLCMType(LLT OrigTy, LLT TargetTy) { in getLCMType() argument 562 const unsigned TargetSize = TargetTy.getSizeInBits(); in getLCMType() 570 if (TargetTy.isVector()) { in getLCMType() 571 const LLT TargetElt = TargetTy.getElementType(); in getLCMType() 575 TargetTy.getNumElements()); in getLCMType() 577 int Mul = OrigTy.getNumElements() * TargetTy.getNumElements(); in getLCMType() 589 if (TargetTy.isVector()) { in getLCMType() 600 return TargetTy; in getLCMType() 605 LLT llvm::getGCDType(LLT OrigTy, LLT TargetTy) { in getGCDType() argument 607 const unsigned TargetSize = TargetTy.getSizeInBits(); in getGCDType() [all …]
|
D | LegalizerHelper.cpp | 2555 LLT TargetTy = B.getMRI()->getType(TargetReg); in buildBitFieldInsert() local 2557 auto ZextVal = B.buildZExt(TargetTy, InsertReg); in buildBitFieldInsert() 2558 auto ShiftedInsertVal = B.buildShl(TargetTy, ZextVal, OffsetBits); in buildBitFieldInsert() 2562 TargetTy, APInt::getLowBitsSet(TargetTy.getSizeInBits(), in buildBitFieldInsert() 2565 auto ShiftedMask = B.buildShl(TargetTy, EltMask, OffsetBits); in buildBitFieldInsert() 2566 auto InvShiftedMask = B.buildNot(TargetTy, ShiftedMask); in buildBitFieldInsert() 2569 auto MaskedOldElt = B.buildAnd(TargetTy, TargetReg, InvShiftedMask); in buildBitFieldInsert() 2573 return B.buildOr(TargetTy, MaskedOldElt, ShiftedInsertVal).getReg(0); in buildBitFieldInsert()
|
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
D | Utils.h | 220 LLT getLCMType(LLT OrigTy, LLT TargetTy); 236 LLT getGCDType(LLT OrigTy, LLT TargetTy);
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1422 Value *BasePtr, Type *Ty, Type *TargetTy, in getNaturalGEPWithType() argument 1425 if (Ty == TargetTy) in getNaturalGEPWithType() 1454 } while (ElementTy != TargetTy); in getNaturalGEPWithType() 1455 if (ElementTy != TargetTy) in getNaturalGEPWithType() 1467 Type *TargetTy, in getNaturalGEPRecursively() argument 1471 return getNaturalGEPWithType(IRB, DL, Ptr, Ty, TargetTy, Indices, in getNaturalGEPRecursively() 1494 Offset, TargetTy, Indices, NamePrefix); in getNaturalGEPRecursively() 1506 return getNaturalGEPRecursively(IRB, DL, Ptr, ElementTy, Offset, TargetTy, in getNaturalGEPRecursively() 1525 return getNaturalGEPRecursively(IRB, DL, Ptr, ElementTy, Offset, TargetTy, in getNaturalGEPRecursively() 1540 Value *Ptr, APInt Offset, Type *TargetTy, in getNaturalGEPWithOffset() argument [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1336 Value *BasePtr, Type *Ty, Type *TargetTy, in getNaturalGEPWithType() argument 1339 if (Ty == TargetTy) in getNaturalGEPWithType() 1368 } while (ElementTy != TargetTy); in getNaturalGEPWithType() 1369 if (ElementTy != TargetTy) in getNaturalGEPWithType() 1381 Type *TargetTy, in getNaturalGEPRecursively() argument 1385 return getNaturalGEPWithType(IRB, DL, Ptr, Ty, TargetTy, Indices, in getNaturalGEPRecursively() 1408 Offset, TargetTy, Indices, NamePrefix); in getNaturalGEPRecursively() 1420 return getNaturalGEPRecursively(IRB, DL, Ptr, ElementTy, Offset, TargetTy, in getNaturalGEPRecursively() 1439 return getNaturalGEPRecursively(IRB, DL, Ptr, ElementTy, Offset, TargetTy, in getNaturalGEPRecursively() 1454 Value *Ptr, APInt Offset, Type *TargetTy, in getNaturalGEPWithOffset() argument [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 1425 Value *BasePtr, Type *Ty, Type *TargetTy, in getNaturalGEPWithType() argument 1428 if (Ty == TargetTy) in getNaturalGEPWithType() 1457 } while (ElementTy != TargetTy); in getNaturalGEPWithType() 1458 if (ElementTy != TargetTy) in getNaturalGEPWithType() 1470 Type *TargetTy, in getNaturalGEPRecursively() argument 1474 return getNaturalGEPWithType(IRB, DL, Ptr, Ty, TargetTy, Indices, in getNaturalGEPRecursively() 1498 Offset, TargetTy, Indices, NamePrefix); in getNaturalGEPRecursively() 1511 return getNaturalGEPRecursively(IRB, DL, Ptr, ElementTy, Offset, TargetTy, in getNaturalGEPRecursively() 1530 return getNaturalGEPRecursively(IRB, DL, Ptr, ElementTy, Offset, TargetTy, in getNaturalGEPRecursively() 1545 Value *Ptr, APInt Offset, Type *TargetTy, in getNaturalGEPWithOffset() argument [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | LegalizerHelper.cpp | 175 static LLT getGCDType(LLT OrigTy, LLT TargetTy) { in getGCDType() argument 176 if (OrigTy.isVector() && TargetTy.isVector()) { in getGCDType() 177 assert(OrigTy.getElementType() == TargetTy.getElementType()); in getGCDType() 179 TargetTy.getNumElements()); in getGCDType() 183 if (OrigTy.isVector() && !TargetTy.isVector()) { in getGCDType() 184 assert(OrigTy.getElementType() == TargetTy); in getGCDType() 185 return TargetTy; in getGCDType() 188 assert(!OrigTy.isVector() && !TargetTy.isVector()); in getGCDType() 191 TargetTy.getSizeInBits()); in getGCDType()
|
/external/clang/lib/CodeGen/ |
D | CGExpr.cpp | 2354 llvm::Type *TargetTy = IntPtrTy; in EmitCheckValue() local 2360 if (Bits <= TargetTy->getIntegerBitWidth()) in EmitCheckValue() 2367 V->getType()->getIntegerBitWidth() <= TargetTy->getIntegerBitWidth()) in EmitCheckValue() 2368 return Builder.CreateZExt(V, TargetTy); in EmitCheckValue() 2376 return Builder.CreatePtrToInt(V, TargetTy); in EmitCheckValue()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGExpr.cpp | 3019 llvm::Type *TargetTy = IntPtrTy; in EmitCheckValue() local 3021 if (V->getType() == TargetTy) in EmitCheckValue() 3028 if (Bits <= TargetTy->getIntegerBitWidth()) in EmitCheckValue() 3035 V->getType()->getIntegerBitWidth() <= TargetTy->getIntegerBitWidth()) in EmitCheckValue() 3036 return Builder.CreateZExt(V, TargetTy); in EmitCheckValue() 3044 return Builder.CreatePtrToInt(V, TargetTy); in EmitCheckValue()
|
D | CGOpenMPRuntimeGPU.cpp | 4147 QualType TargetTy = TargetParam->getType(); in getParameterAddress() local 4149 LocalAddr, /*Volatile=*/false, TargetTy, SourceLocation()); in getParameterAddress()
|
/external/llvm/lib/IR/ |
D | Verifier.cpp | 2881 Type *TargetTy = GEP.getPointerOperandType()->getScalarType(); in visitGetElementPtrInst() local 2883 Assert(isa<PointerType>(TargetTy), in visitGetElementPtrInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Verifier.cpp | 3304 Type *TargetTy = GEP.getPointerOperandType()->getScalarType(); in visitGetElementPtrInst() local 3306 Assert(isa<PointerType>(TargetTy), in visitGetElementPtrInst()
|
/external/llvm-project/llvm/lib/IR/ |
D | Verifier.cpp | 3487 Type *TargetTy = GEP.getPointerOperandType()->getScalarType(); in visitGetElementPtrInst() local 3489 Assert(isa<PointerType>(TargetTy), in visitGetElementPtrInst()
|