HomeSort by relevance Sort by last modified time
    Searched refs:DestTy (Results 1 - 25 of 50) sorted by null

1 2

  /external/llvm/include/llvm/Analysis/
TargetFolder.h 168 Type *DestTy) const {
169 if (C->getType() == DestTy)
171 return Fold(ConstantExpr::getCast(Op, C, DestTy));
173 Constant *CreateIntCast(Constant *C, Type *DestTy,
175 if (C->getType() == DestTy)
177 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned));
179 Constant *CreatePointerCast(Constant *C, Type *DestTy) const {
180 if (C->getType() == DestTy)
182 return Fold(ConstantExpr::getPointerCast(C, DestTy));
184 Constant *CreateFPCast(Constant *C, Type *DestTy) const
    [all...]
ConstantFolding.h 56 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
  /external/llvm/include/llvm/IR/
AutoUpgrade.h 55 Instruction *UpgradeBitCastInst(unsigned Opc, Value *V, Type *DestTy,
61 Value *UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy);
ConstantFolder.h 156 Type *DestTy) const {
157 return ConstantExpr::getCast(Op, C, DestTy);
159 Constant *CreatePointerCast(Constant *C, Type *DestTy) const {
160 return ConstantExpr::getPointerCast(C, DestTy);
162 Constant *CreateIntCast(Constant *C, Type *DestTy,
164 return ConstantExpr::getIntegerCast(C, DestTy, isSigned);
166 Constant *CreateFPCast(Constant *C, Type *DestTy) const {
167 return ConstantExpr::getFPCast(C, DestTy);
170 Constant *CreateBitCast(Constant *C, Type *DestTy) const {
171 return CreateCast(Instruction::BitCast, C, DestTy);
    [all...]
NoFolder.h 215 Type *DestTy) const {
216 return CastInst::Create(Op, C, DestTy);
218 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const {
219 return CastInst::CreatePointerCast(C, DestTy);
221 Instruction *CreateIntCast(Constant *C, Type *DestTy,
223 return CastInst::CreateIntegerCast(C, DestTy, isSigned);
225 Instruction *CreateFPCast(Constant *C, Type *DestTy) const {
226 return CastInst::CreateFPCast(C, DestTy);
229 Instruction *CreateBitCast(Constant *C, Type *DestTy) const {
230 return CreateCast(Instruction::BitCast, C, DestTy);
    [all...]
IRBuilder.h     [all...]
  /external/llvm/lib/IR/
ConstantFold.cpp 100 static Constant *FoldBitCast(Constant *V, Type *DestTy) {
102 if (SrcTy == DestTy)
108 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy))
138 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) {
145 return Constant::getNullValue(DestTy);
161 return ConstantPointerNull::get(cast<PointerType>(DestTy));
165 if (DestTy->isIntegerTy())
170 if (DestTy->isFloatingPointTy())
171 return ConstantFP::get(DestTy->getContext(),
172 APFloat(DestTy->getFltSemantics()
    [all...]
ConstantFold.h 33 Type *DestTy ///< The destination type
Verifier.cpp 338 void VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy);
    [all...]
AutoUpgrade.cpp 524 Instruction *llvm::UpgradeBitCastInst(unsigned Opc, Value *V, Type *DestTy,
531 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() &&
532 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) {
540 return CastInst::Create(Instruction::IntToPtr, Temp, DestTy);
546 Value *llvm::UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy) {
551 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() &&
552 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) {
560 DestTy);
Core.cpp     [all...]
Instructions.cpp     [all...]
ConstantsContext.h 174 Type *DestTy)
175 : ConstantExpr(DestTy, Instruction::ExtractValue, &Op<0>(), 1),
200 Type *DestTy)
201 : ConstantExpr(DestTy, Instruction::InsertValue, &Op<0>(), 2),
220 Type *DestTy);
224 Type *DestTy,
227 new(IdxList.size() + 1) GetElementPtrConstantExpr(C, IdxList, DestTy);
  /external/llvm/lib/Target/NVPTX/
NVPTXFavorNonGenericAddrSpaces.cpp 97 PointerType *DestTy = cast<PointerType>(Cast->getType());
102 if (SrcTy->getElementType() != DestTy->getElementType())
108 DestTy->getAddressSpace() == AddressSpace::ADDRESS_SPACE_GENERIC);
NVPTXGenericToNVVM.cpp 174 Type *DestTy = PointerType::get(Type::getInt8Ty(Context), AddrSpace);
175 CVTA = Builder.CreateBitCast(GV, DestTy, "cvta");
181 ParamTypes.push_back(DestTy);
187 DestTy =
189 CVTA = Builder.CreateBitCast(CVTA, DestTy, "cvta");
  /external/llvm/utils/TableGen/
CallingConvEmitter.cpp 217 Record *DestTy = Action->getValueAsDef("DestTy");
218 MVT::SimpleValueType DestVT = getValueType(DestTy);
231 Record *DestTy = Action->getValueAsDef("DestTy");
232 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
235 Record *DestTy = Action->getValueAsDef("DestTy");
236 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
  /external/llvm/lib/Transforms/InstCombine/
InstCombineCasts.cpp 449 Type *DestTy = CI.getType(), *SrcTy = Src->getType();
455 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
456 CanEvaluateTruncated(Src, DestTy)) {
462 Value *Res = EvaluateInDifferentType(Src, DestTy, false);
463 assert(Res->getType() == DestTy);
468 if (DestTy->getScalarSizeInBits() == 1) {
776 Type *SrcTy = Src->getType(), *DestTy = CI.getType();
783 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &
    [all...]
  /external/llvm/tools/llvm-stress/
llvm-stress.cpp 481 Type *DestTy = pickScalarType();
486 DestTy = pickVectorType(VecTy->getNumElements());
490 if (VTy == DestTy) return;
494 if (!DestTy->isPointerTy())
495 DestTy = PointerType::get(DestTy, 0);
497 new BitCastInst(V, DestTy, "PC", BB->getTerminator()));
501 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits();
506 new BitCastInst(V, DestTy, "BC", BB->getTerminator()));
511 DestTy->getScalarType()->isIntegerTy())
    [all...]
  /external/llvm/lib/Analysis/
ConstantFolding.cpp 53 static Constant *FoldBitCast(Constant *C, Type *DestTy,
56 if (C->isNullValue() && !DestTy->isX86_MMXTy())
57 return Constant::getNullValue(DestTy);
58 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy())
59 return Constant::getAllOnesValue(DestTy);
62 if (IntegerType *IT = dyn_cast<IntegerType>(DestTy)) {
65 return ConstantExpr::getBitCast(C, DestTy);
82 return ConstantExpr::getBitCast(C, DestTy);
100 VectorType *DestVTy = dyn_cast<VectorType>(DestTy);
102 return ConstantExpr::getBitCast(C, DestTy);
    [all...]
  /external/llvm/include/llvm-c/
Core.h     [all...]
  /external/llvm/lib/Transforms/IPO/
MergeFunctions.cpp     [all...]
  /external/clang/lib/CodeGen/
CGCXXABI.h 224 QualType SrcRecordTy, QualType DestTy,
230 QualType DestTy) = 0;
CGExprCXX.cpp     [all...]
CGExprConstant.cpp     [all...]
CGExprScalar.cpp     [all...]

Completed in 547 milliseconds

1 2