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

1 2

  /external/llvm/include/llvm/Support/
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...]
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...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineCasts.cpp 446 Type *DestTy = CI.getType(), *SrcTy = Src->getType();
452 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
453 CanEvaluateTruncated(Src, DestTy)) {
459 Value *Res = EvaluateInDifferentType(Src, DestTy, false);
460 assert(Res->getType() == DestTy);
465 if (DestTy->getScalarSizeInBits() == 1) {
763 Type *SrcTy = Src->getType(), *DestTy = CI.getType();
770 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &
    [all...]
InstCombineLoadStoreAlloca.cpp 287 PointerType *DestTy = cast<PointerType>(CI->getType());
288 Type *DestPTy = DestTy->getElementType();
292 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace())
  /external/llvm/lib/IR/
ConstantFold.cpp 99 static Constant *FoldBitCast(Constant *V, Type *DestTy) {
101 if (SrcTy == DestTy)
107 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy))
137 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) {
144 return Constant::getNullValue(DestTy);
160 return ConstantPointerNull::get(cast<PointerType>(DestTy));
164 if (DestTy->isIntegerTy())
169 if (DestTy->isFloatingPointTy())
170 return ConstantFP::get(DestTy->getContext(),
171 APFloat(DestTy->getFltSemantics()
    [all...]
Verifier.cpp     [all...]
ConstantFold.h 33 Type *DestTy ///< The destination type
Core.cpp     [all...]
ConstantsContext.h 171 Type *DestTy)
172 : ConstantExpr(DestTy, Instruction::ExtractValue, &Op<0>(), 1),
197 Type *DestTy)
198 : ConstantExpr(DestTy, Instruction::InsertValue, &Op<0>(), 2),
217 Type *DestTy);
221 Type *DestTy,
224 new(IdxList.size() + 1) GetElementPtrConstantExpr(C, IdxList, DestTy);
Instructions.cpp     [all...]
  /external/llvm/include/llvm/IR/
IRBuilder.h     [all...]
  /external/llvm/utils/TableGen/
CallingConvEmitter.cpp 195 Record *DestTy = Action->getValueAsDef("DestTy");
196 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
204 Record *DestTy = Action->getValueAsDef("DestTy");
205 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
208 Record *DestTy = Action->getValueAsDef("DestTy");
209 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
  /external/llvm/tools/llvm-stress/
llvm-stress.cpp 479 Type *DestTy = pickScalarType();
484 DestTy = pickVectorType(VecTy->getNumElements());
488 if (VTy == DestTy) return;
492 if (!DestTy->isPointerTy())
493 DestTy = PointerType::get(DestTy, 0);
495 new BitCastInst(V, DestTy, "PC", BB->getTerminator()));
499 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits();
504 new BitCastInst(V, DestTy, "BC", BB->getTerminator()));
509 DestTy->getScalarType()->isIntegerTy())
    [all...]
  /external/llvm/include/llvm/Analysis/
ConstantFolding.h 55 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
  /external/llvm/lib/Analysis/
ConstantFolding.cpp 47 static Constant *FoldBitCast(Constant *C, Type *DestTy,
50 if (C->isNullValue() && !DestTy->isX86_MMXTy())
51 return Constant::getNullValue(DestTy);
52 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy())
53 return Constant::getAllOnesValue(DestTy);
56 if (IntegerType *IT = dyn_cast<IntegerType>(DestTy)) {
59 return ConstantExpr::getBitCast(C, DestTy);
76 return ConstantExpr::getBitCast(C, DestTy);
94 VectorType *DestVTy = dyn_cast<VectorType>(DestTy);
96 return ConstantExpr::getBitCast(C, DestTy);
    [all...]
  /external/llvm/include/llvm-c/
Core.h     [all...]
  /external/clang/lib/CodeGen/
CGExprComplex.cpp 140 ComplexPairTy EmitCast(CastExpr::CastKind CK, Expr *Op, QualType DestTy);
377 QualType DestTy) {
394 CGF.ConvertType(CGF.getContext().getPointerType(DestTy)));
395 return EmitLoadOfLValue(CGF.MakeAddrLValue(V, DestTy,
447 DestTy = DestTy->castAs<ComplexType>()->getElementType();
448 Elt = CGF.EmitScalarConversion(Elt, Op->getType(), DestTy);
458 return EmitComplexToComplexCast(Visit(Op), Op->getType(), DestTy);
CGExprConstant.cpp     [all...]
CGExprCXX.cpp     [all...]
CGExprScalar.cpp     [all...]
CGObjC.cpp     [all...]
  /external/llvm/lib/ExecutionEngine/
ExecutionEngine.cpp 664 Type* DestTy = CE->getType();
668 assert(DestTy->isFloatingPointTy() && "invalid bitcast");
669 if (DestTy->isFloatTy())
671 else if (DestTy->isDoubleTy())
675 assert(DestTy->isIntegerTy(32) && "Invalid bitcast");
679 assert(DestTy->isIntegerTy(64) && "Invalid bitcast");
683 assert(DestTy->isPointerTy() && "Invalid bitcast");
    [all...]
  /external/clang/lib/Sema/
SemaCast.cpp     [all...]
  /external/llvm/lib/AsmParser/
LLParser.cpp     [all...]

Completed in 1056 milliseconds

1 2