Home
last modified time | relevance | path

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

12345678910

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUOpenCLEnqueuedBlockLowering.cpp135 auto *BitCast = cast<ConstantExpr>(UU); in runOnModule() local
136 auto *NewPtr = ConstantExpr::getPointerCast(GV, BitCast->getType()); in runOnModule()
137 BitCast->replaceAllUsesWith(NewPtr); in runOnModule()
DAMDGPUPromoteAlloca.cpp331 case Instruction::BitCast: in canVectorizeInst()
413 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local
414 Value *VecValue = Builder.CreateLoad(BitCast); in tryPromoteAllocaToVector()
426 Value *BitCast = Builder.CreateBitCast(Alloca, VecPtrTy); in tryPromoteAllocaToVector() local
427 Value *VecValue = Builder.CreateLoad(BitCast); in tryPromoteAllocaToVector()
431 Builder.CreateStore(NewVecValue, BitCast); in tryPromoteAllocaToVector()
435 case Instruction::BitCast: in tryPromoteAllocaToVector()
/external/icu/icu4c/source/i18n/
Ddouble-conversion-ieee.h50 static uint64_t double_to_uint64(double d) { return BitCast<uint64_t>(d); } in double_to_uint64()
51 static double uint64_to_double(uint64_t d64) { return BitCast<double>(d64); } in uint64_to_double()
52 static uint32_t float_to_uint32(float f) { return BitCast<uint32_t>(f); } in float_to_uint32()
53 static float uint32_to_float(uint32_t d32) { return BitCast<float>(d32); } in uint32_to_float()
Ddouble-conversion-utils.h336 inline Dest BitCast(const Source& source) { in BitCast() function
348 inline Dest BitCast(Source* source) { in BitCast() function
349 return BitCast<Dest>(reinterpret_cast<uintptr_t>(source)); in BitCast()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstructions.cpp2009 case Instruction::BitCast: in isIntegerCast()
2017 if (getOpcode() != Instruction::BitCast) in isLosslessCast()
2057 case Instruction::BitCast: in isNoopCast()
2137 bool isFirstBitcast = (firstOp == Instruction::BitCast); in isEliminableCastPair()
2138 bool isSecondBitcast = (secondOp == Instruction::BitCast); in isEliminableCastPair()
2191 return Instruction::BitCast; in isEliminableCastPair()
2201 return Instruction::BitCast; in isEliminableCastPair()
2212 return Instruction::BitCast; in isEliminableCastPair()
2233 return Instruction::BitCast; in isEliminableCastPair()
2264 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore); in Create()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstructions.cpp2172 case Instruction::BitCast: in isIntegerCast()
2180 if (getOpcode() != Instruction::BitCast) in isLosslessCast()
2221 case Instruction::BitCast: in isNoopCast()
2305 bool IsFirstBitcast = (firstOp == Instruction::BitCast); in isEliminableCastPair()
2306 bool IsSecondBitcast = (secondOp == Instruction::BitCast); in isEliminableCastPair()
2363 return Instruction::BitCast; in isEliminableCastPair()
2370 return Instruction::BitCast; in isEliminableCastPair()
2380 return Instruction::BitCast; in isEliminableCastPair()
2396 return Instruction::BitCast; in isEliminableCastPair()
2404 return Instruction::BitCast; in isEliminableCastPair()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DEvaluator.cpp87 case Instruction::BitCast: in isSimpleEnoughValueToCommitHelper()
167 } else if (CE->getOpcode() == Instruction::BitCast && in isSimpleEnoughPointerToCommit()
206 case Instruction::BitCast: in ComputeLoadResult()
239 if (!CE || CE->getOpcode() != Instruction::BitCast || in getCalleeWithFormalArgs()
276 if (!RV || !CE || CE->getOpcode() != Instruction::BitCast) in castCallResultIfNeeded()
328 if (CE->getOpcode() == Instruction::BitCast) { in EvaluateBlock()
DCallPromotionUtils.cpp180 auto *Cast = CastInst::Create(Instruction::BitCast, CS.getInstruction(), in createRetBitCast()
399 auto *Cast = CastInst::Create(Instruction::BitCast, Arg, FormalTy, "", in promoteCall()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp379 case Instruction::BitCast: in canVectorizeInst()
448 Value *BitCast = Builder.CreateBitCast(Alloca, VectorTy->getPointerTo(0)); in tryPromoteAllocaToVector() local
449 Value *VecValue = Builder.CreateLoad(BitCast); in tryPromoteAllocaToVector()
458 Value *BitCast = Builder.CreateBitCast(Alloca, VectorTy->getPointerTo(0)); in tryPromoteAllocaToVector() local
459 Value *VecValue = Builder.CreateLoad(BitCast); in tryPromoteAllocaToVector()
463 Builder.CreateStore(NewVecValue, BitCast); in tryPromoteAllocaToVector()
467 case Instruction::BitCast: in tryPromoteAllocaToVector()
DSITypeRewriter.cpp80 Value *BitCast = Builder.CreateBitCast(Ptr, in visitLoadInst() local
82 LoadInst *Load = Builder.CreateLoad(BitCast); in visitLoadInst()
/external/llvm/lib/IR/
DInstructions.cpp2336 case Instruction::BitCast: in isIntegerCast()
2344 if (getOpcode() != Instruction::BitCast) in isLosslessCast()
2385 case Instruction::BitCast: in isNoopCast()
2483 bool IsFirstBitcast = (firstOp == Instruction::BitCast); in isEliminableCastPair()
2484 bool IsSecondBitcast = (secondOp == Instruction::BitCast); in isEliminableCastPair()
2541 return Instruction::BitCast; in isEliminableCastPair()
2548 return Instruction::BitCast; in isEliminableCastPair()
2558 return Instruction::BitCast; in isEliminableCastPair()
2570 return Instruction::BitCast; in isEliminableCastPair()
2580 return Instruction::BitCast; in isEliminableCastPair()
[all …]
/external/llvm/unittests/IR/
DInstructionsTest.cpp264 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
267 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
425 CastInst::BitCast); in TEST()
433 CastInst::BitCast); in TEST()
448 CastInst::BitCast); in TEST()
485 CastInst::BitCast, in TEST()
/external/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeDecoders.cpp20 LLVMOpcode = Instruction::BitCast; in DecodeCastOpcode()
50 LLVMOpcode = Instruction::BitCast; in DecodeCastOpcode()
/external/llvm/lib/Target/NVPTX/
DNVPTXInferAddressSpaces.cpp166 case Instruction::BitCast: in isAddressExpression()
187 case Instruction::BitCast: in getPointerOperands()
303 case Instruction::BitCast: in cloneInstructionWithNewAddressSpace()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DInferAddressSpaces.cpp223 case Instruction::BitCast: in isAddressExpression()
244 case Instruction::BitCast: in getPointerOperands()
472 case Instruction::BitCast: in cloneInstructionWithNewAddressSpace()
520 if (CE->getOpcode() == Instruction::BitCast) { in cloneConstantExprWithNewAddressSpace()
984 NewV = CastInst::Create(Instruction::BitCast, NewV, in rewriteWithNewAddressSpaces()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp1926 case Instruction::BitCast: in collectInsertionElements()
1998 static Instruction *canonicalizeBitCastExtElt(BitCastInst &BitCast, in canonicalizeBitCastExtElt() argument
2001 auto *ExtElt = dyn_cast<ExtractElementInst>(BitCast.getOperand(0)); in canonicalizeBitCastExtElt()
2007 Type *DestType = BitCast.getType(); in canonicalizeBitCastExtElt()
2019 static Instruction *foldBitCastBitwiseLogic(BitCastInst &BitCast, in foldBitCastBitwiseLogic() argument
2021 Type *DestTy = BitCast.getType(); in foldBitCastBitwiseLogic()
2024 !match(BitCast.getOperand(0), m_OneUse(m_BinOp(BO))) || in foldBitCastBitwiseLogic()
2065 static Instruction *foldBitCastSelect(BitCastInst &BitCast, in foldBitCastSelect() argument
2068 if (!match(BitCast.getOperand(0), in foldBitCastSelect()
2074 Type *DestTy = BitCast.getType(); in foldBitCastSelect()
[all …]
/external/llvm/lib/Transforms/Utils/
DEvaluator.cpp71 case Instruction::BitCast: in isSimpleEnoughValueToCommitHelper()
151 } else if (CE->getOpcode() == Instruction::BitCast && in isSimpleEnoughPointerToCommit()
228 if (CE->getOpcode() == Instruction::BitCast) { in EvaluateBlock()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc170 BitCast(GetEmittedValueFor(bitcast->operand(0)), in HandleBitcast()
1218 BitCast(GetEmittedValueFor(convolution), ir_ptr_type), in HandleConvolution()
1219 BitCast(lhs_address, ir_ptr_type), in HandleConvolution()
1220 BitCast(rhs_address, ir_ptr_type), in HandleConvolution()
1299 BitCast(GetEmittedValueFor(fft), int8_ptr_type), in HandleFft()
1300 BitCast(operand_address, int8_ptr_type), b_.getInt32(fft->fft_type()), in HandleFft()
1613 llvm::Value* input_address = BitCast( in EmitInnerLoopForVectorizedReduction()
1618 BitCast(input_address, accumulator[i]->getType()); in EmitInnerLoopForVectorizedReduction()
1649 BitCast(store_address, in EmitShardedVectorStore()
2438 llvm::Value* target_region_begin = BitCast( in EmitFastConcatenate()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DInstructionsTest.cpp276 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
279 EXPECT_FALSE(CastInst::castIsValid(Instruction::BitCast, in TEST()
437 CastInst::BitCast); in TEST()
445 CastInst::BitCast); in TEST()
460 CastInst::BitCast); in TEST()
497 CastInst::BitCast, in TEST()
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DInlineSimple.cpp110 if (CE->getOpcode() == Instruction::BitCast) in doInitialization()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DCaptureTracking.cpp116 case Instruction::BitCast: in PointerMayBeCaptured()
DLoads.cpp68 } else if (Operator::getOpcode(V) == Instruction::BitCast) { in getUnderlyingObjectWithOffset()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DAddrModeMatcher.cpp125 case Instruction::BitCast: in MightBeFoldableInst()
168 case Instruction::BitCast: in MatchOperationAddr()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp172 case Instruction::BitCast: in getIntImmCost()
/external/swiftshader/third_party/LLVM/
DOnlyX86.patch170 - return CastInst::Create(Instruction::BitCast, Result, CI.getType());
217 + // return CastInst::Create(Instruction::BitCast, Result, CI.getType());

12345678910