Home
last modified time | relevance | path

Searched refs:BitCast (Results 1 – 25 of 83) sorted by relevance

1234

/minix3/external/bsd/llvm/dist/llvm/lib/Target/R600/
H A DAMDGPUPromoteAlloca.cpp140 case Instruction::BitCast: in canVectorizeInst()
206 Value *BitCast = Builder.CreateBitCast(Alloca, VectorTy->getPointerTo(0)); in tryPromoteAllocaToVector() local
207 Value *VecValue = Builder.CreateLoad(BitCast); in tryPromoteAllocaToVector()
216 Value *BitCast = Builder.CreateBitCast(Alloca, VectorTy->getPointerTo(0)); in tryPromoteAllocaToVector() local
217 Value *VecValue = Builder.CreateLoad(BitCast); in tryPromoteAllocaToVector()
221 Builder.CreateStore(NewVecValue, BitCast); in tryPromoteAllocaToVector()
225 case Instruction::BitCast: in tryPromoteAllocaToVector()
H A DSITypeRewriter.cpp87 Value *BitCast = Builder.CreateBitCast(Ptr, in visitLoadInst() local
89 LoadInst *Load = Builder.CreateLoad(BitCast); in visitLoadInst()
H A DAMDGPUISelDAGToDAG.cpp433 SDValue BitCast = CurDAG->getNode(ISD::BITCAST, SDLoc(N), in Select() local
436 CurDAG->ReplaceAllUsesOfValueWith(SDValue(N, 0), BitCast); in Select()
438 N = BitCast.getNode(); in Select()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXLowerStructArgs.cpp90 BitCastInst *BitCast = new BitCastInst( in handleParam() local
93 LoadInst *LI = new LoadInst(BitCast, Arg->getName(), FirstInst); in handleParam()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DInstructions.cpp2095 case Instruction::BitCast: in isIntegerCast()
2103 if (getOpcode() != Instruction::BitCast) in isLosslessCast()
2144 case Instruction::BitCast: in isNoopCast()
2246 bool isFirstBitcast = (firstOp == Instruction::BitCast); in isEliminableCastPair()
2247 bool isSecondBitcast = (secondOp == Instruction::BitCast); in isEliminableCastPair()
2304 return Instruction::BitCast; in isEliminableCastPair()
2311 return Instruction::BitCast; in isEliminableCastPair()
2321 return Instruction::BitCast; in isEliminableCastPair()
2333 return Instruction::BitCast; in isEliminableCastPair()
2343 return Instruction::BitCast; in isEliminableCastPair()
[all …]
H A DValue.cpp409 } else if (Operator::getOpcode(V) == Instruction::BitCast || in stripPointerCastsAndOffsets()
461 } else if (Operator::getOpcode(V) == Instruction::BitCast || in stripAndAccumulateInBoundsConstantOffsets()
H A DAutoUpgrade.cpp601 if (Opc != Instruction::BitCast) in UpgradeBitCastInst()
622 if (Opc != Instruction::BitCast) in UpgradeBitCastExpr()
H A DInstruction.cpp235 case BitCast: return "bitcast"; in getOpcodeName()
H A DConstants.cpp1234 case Instruction::BitCast: in getWithOperands()
1596 case Instruction::BitCast: in getCast()
1654 (SrcBits == DstBits ? Instruction::BitCast : in getIntegerCast()
1810 assert(CastInst::castIsValid(Instruction::BitCast, C, DstTy) && in getBitCast()
1817 return getFoldedCast(Instruction::BitCast, C, DstTy, OnlyIfReduced); in getBitCast()
2939 case Instruction::BitCast: in getAsInstruction()
/minix3/external/bsd/llvm/dist/llvm/unittests/IR/
H A DInstructionsTest.cpp264 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
267 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
419 CastInst::BitCast); in TEST()
427 CastInst::BitCast); in TEST()
442 CastInst::BitCast); in TEST()
479 CastInst::BitCast, in TEST()
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/
H A DBasicTargetTransformInfo.cpp375 if (Opcode == Instruction::BitCast || Opcode == Instruction::Trunc) in getCastInstrCost()
396 if (Opcode == Instruction::BitCast) in getCastInstrCost()
443 if (Opcode == Instruction::BitCast) in getCastInstrCost()
H A DJumpInstrTables.cpp97 if (CE->getOpcode() == Instruction::BitCast) { in replaceGlobalValueIndirectUse()
H A DMachineFunction.cpp912 A = ConstantFoldInstOperands(Instruction::BitCast, IntTy, in CanShareConstantPoolEntry()
918 B = ConstantFoldInstOperands(Instruction::BitCast, IntTy, in CanShareConstantPoolEntry()
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DCaptureTracking.cpp229 case Instruction::BitCast: in PointerMayBeCaptured()
H A DConstantFolding.cpp252 CE->getOpcode() == Instruction::BitCast || in IsConstantOffsetFromGlobal()
503 Instruction::CastOps Cast = Instruction::BitCast; in ConstantFoldLoadThroughBitcast()
554 if (CE->getOpcode() == Instruction::BitCast) in ConstantFoldLoadFromConstPtr()
1089 case Instruction::BitCast: in ConstantFoldInstOperands()
H A DCostModel.cpp454 case Instruction::BitCast: in getInstructionCost()
H A DTargetTransformInfo.cpp293 case Instruction::BitCast: in getOperationCost()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/ObjCARC/
H A DObjCARCUtil.cpp210 case Instruction::BitCast: in GetInstructionClass()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/XCore/
H A DXCoreLowerThreadLocal.cpp118 case Instruction::BitCast: in createReplacementInstr()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DConstantFolder.h177 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
H A DInstruction.def156 HANDLE_CAST_INST(44, BitCast , BitCastInst ) // Type cast
H A DNoFolder.h230 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h190 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
/minix3/minix/llvm/passes/magic/support/
H A DMagicUtil.cpp490 Constant* varAddress = ConstantExpr::getCast(Instruction::BitCast, GV, voidPointerType); in insertCopyInst()
491 Constant* varShadowAddress = ConstantExpr::getCast(Instruction::BitCast, SGV, voidPointerType); in insertCopyInst()
508 … assert(CE->getOpcode() == Instruction::BitCast && "Bitcast expected, something else found!"); in getCalledFunctionFromCS()
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/IPA/
H A DGlobalsModRef.cpp269 } else if (Operator::getOpcode(I) == Instruction::BitCast) { in AnalyzeUsesOfPointer()

1234