/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | vector_support_library.cc | 140 return b()->CreateBitCast(b()->CreateSExt(i1, integer_type, name()), in I1ToFloat() 167 return b()->CreateBitCast( in FloatAnd() 168 b()->CreateAnd(b()->CreateBitCast(lhs, int_type, name()), in FloatAnd() 169 b()->CreateBitCast(rhs, int_type, name()), name()), in FloatAnd() 177 return b()->CreateBitCast( in FloatNot() 178 b()->CreateNot(b()->CreateBitCast(lhs, int_type, name()), name()), in FloatNot() 186 return b()->CreateBitCast( in FloatOr() 187 b()->CreateOr(b()->CreateBitCast(lhs, int_type, name()), in FloatOr() 188 b()->CreateBitCast(rhs, int_type, name()), name()), in FloatOr() 205 b()->CreateBitCast(base_pointer, scalar_pointer_type(), name()); in ComputeOffsetPointer() [all …]
|
D | ir_function.cc | 209 llvm::Value* parameter_as_i8ptr = b->CreateBitCast( in GetArrayFunctionCallArguments() 320 b->CreateBitCast(global_partitions_array, in EmitCallToParallelForkJoin() 326 b->CreateBitCast(parallel_function, b->getInt8PtrTy())); in EmitCallToParallelForkJoin()
|
/external/clang/lib/CodeGen/ |
D | CGBuiltin.cpp | 104 Args[0] = CGF.Builder.CreateBitCast(DestPtr, IntPtrType); in MakeBinaryAtomicValue() 120 Value *BC = CGF.Builder.CreateBitCast( in EmitNontemporalStore() 168 Args[0] = CGF.Builder.CreateBitCast(DestPtr, IntPtrType); in EmitBinaryAtomicPost() 202 Args[0] = CGF.Builder.CreateBitCast(DestPtr, IntPtrType); in MakeAtomicCmpXchgValue() 282 V = CGF.Builder.CreateBitCast(V, IntTy); in EmitSignBit() 394 Builder.CreateBitCast(ArgValue, DestType, ArgValue->getName().data()); in EmitVAStartEnd() 500 DstPtr = Builder.CreateBitCast(DstPtr, Type); in EmitBuiltinExpr() 501 SrcPtr = Builder.CreateBitCast(SrcPtr, Type); in EmitBuiltinExpr() 1186 Buf = Builder.CreateBitCast(Buf, Int8PtrTy); in EmitBuiltinExpr() 1191 Buf = Builder.CreateBitCast(Buf, Int8PtrTy); in EmitBuiltinExpr() [all …]
|
D | CGObjC.cpp | 88 Address BitCast = Builder.CreateBitCast(Temporary, ConvertType(ArgQT)); in EmitObjCBoxedExpr() 99 llvm::Value *Cast = Builder.CreateBitCast(GV, ConvertType(EncodingQT)); in EmitObjCBoxedExpr() 109 return Builder.CreateBitCast(result.getScalarVal(), in EmitObjCBoxedExpr() 221 return Builder.CreateBitCast(result.getScalarVal(), in EmitObjCCollectionLiteral() 262 return RValue::get(CGF.Builder.CreateBitCast(Result.getScalarVal(), in AdjustObjCObjectType() 479 newSelf = Builder.CreateBitCast(newSelf, selfTy); in EmitObjCMessageExpr() 581 Address dest = CGF.Builder.CreateBitCast(CGF.ReturnValue, CGF.VoidPtrTy); in emitStructGetterCall() 584 src = CGF.Builder.CreateBitCast(src, CGF.VoidPtrTy); in emitStructGetterCall() 849 ivarAddr = CGF.Builder.CreateBitCast(ivarAddr, CGF.Int8PtrTy); in emitCPPObjectAtomicGetterCall() 906 ivarAddr = Builder.CreateBitCast(ivarAddr, bitcastType); in generateObjCGetterBody() [all …]
|
D | CGBlocks.cpp | 822 byrefPointer = Builder.CreateBitCast(src.getPointer(), VoidPtrTy); in EmitBlockLiteral() 897 Builder.CreateBitCast(blockAddr.getPointer(), in EmitBlockLiteral() 968 Builder.CreateBitCast(Callee, BlockLiteralTy, "block.literal"); in EmitBlockCallExpr() 974 BlockLiteral = Builder.CreateBitCast(BlockLiteral, VoidPtrTy); in EmitBlockCallExpr() 996 Func = Builder.CreateBitCast(Func, BlockFTyPtr); in EmitBlockCallExpr() 1022 addr = Builder.CreateBitCast(addr, byrefPointerType, "byref.addr"); in GetAddrOfBlockDecl() 1128 BlockPointer = Builder.CreateBitCast(arg, in setBlockContextParameter() 1366 src = Builder.CreateBitCast(src, structPtrTy, "block.source"); in GenerateCopyHelperFunction() 1370 dst = Builder.CreateBitCast(dst, structPtrTy, "block.dest"); in GenerateCopyHelperFunction() 1464 srcValue = Builder.CreateBitCast(srcValue, VoidPtrTy); in GenerateCopyHelperFunction() [all …]
|
D | CGObjCRuntime.cpp | 95 llvm::Value *V = CGF.Builder.CreateBitCast(BaseValue, CGF.Int8PtrTy); in EmitValueForIvarAtOffset() 99 V = CGF.Builder.CreateBitCast(V, llvm::PointerType::getUnqual(LTy)); in EmitValueForIvarAtOffset() 255 llvm::Value *CastExn = CGF.Builder.CreateBitCast(Exn, CatchType); in EmitTryCatchStmt() 335 lock = CGF.Builder.CreateBitCast(lock, CGF.VoidPtrTy); in EmitAtSynchronizedStmt()
|
D | CGBuilder.h | 159 using CGBuilderBaseTy::CreateBitCast; 160 Address CreateBitCast(Address Addr, llvm::Type *Ty, 162 return Address(CreateBitCast(Addr.getPointer(), Ty, Name), 171 return CreateBitCast(Addr, PtrTy, Name);
|
D | CGObjCMac.cpp | 1795 CGF.Builder.CreateBitCast(Receiver, ObjCTypes.ObjectPtrTy); in GenerateMessageSendSuper() 1832 Target = CGF.Builder.CreateBitCast(Target, ClassTy); in GenerateMessageSendSuper() 1879 Arg0 = CGF.Builder.CreateBitCast(Arg0, ObjCTypes.ObjectPtrTy); in EmitMessageSend() 2697 CGF.Builder.CreateBitCast(className, in EmitClassRefViaRuntime() 4049 SyncArg = CGF.Builder.CreateBitCast(SyncArg, ObjCTypes.ObjectPtrTy); in EmitTryOrSynchronizedStmt() 4263 CGF.Builder.CreateBitCast(Caught, in EmitTryOrSynchronizedStmt() 4353 CGF.Builder.CreateBitCast(Exception, ObjCTypes.ObjectPtrTy); in EmitThrowStmt() 4375 AddrWeakObj = CGF.Builder.CreateBitCast(AddrWeakObj, in EmitObjCWeakRead() 4380 read_weak = CGF.Builder.CreateBitCast(read_weak, DestTy); in EmitObjCWeakRead() 4393 src = (Size == 4) ? CGF.Builder.CreateBitCast(src, ObjCTypes.IntTy) in EmitObjCWeakAssign() [all …]
|
D | CGClass.cpp | 247 ptr = CGF.Builder.CreateBitCast(ptr, CGF.Int8PtrTy); in ApplyNonVirtualAndVirtualOffset() 315 return Builder.CreateBitCast(Value, BasePtrTy); in GetAddressOfBaseClass() 350 Value = Builder.CreateBitCast(Value, BasePtrTy); in GetAddressOfBaseClass() 384 return Builder.CreateBitCast(BaseAddr, DerivedPtrTy); in GetAddressOfDerivedClass() 402 llvm::Value *Value = Builder.CreateBitCast(BaseAddr.getPointer(), Int8PtrTy); in GetAddressOfDerivedClass() 407 Value = Builder.CreateBitCast(Value, DerivedPtrTy); in GetAddressOfDerivedClass() 776 Address BaseAddrPtr = Builder.CreateBitCast(LHS.getAddress(), BasePtr); in EmitInitializerForField() 1079 DestPtr = CGF.Builder.CreateBitCast(DestPtr, DBP); in emitMemcpyIR() 1084 SrcPtr = CGF.Builder.CreateBitCast(SrcPtr, SBP); in emitMemcpyIR() 1681 llvm::Value *Args[] = {CGF.Builder.CreateBitCast(Ptr, CGF.VoidPtrTy), in EmitSanitizerDtorCallback() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | LowerMemIntrinsics.cpp | 64 SrcAddr = PLBuilder.CreateBitCast(SrcAddr, SrcOpType); in createMemCpyLoopKnownSize() 67 DstAddr = PLBuilder.CreateBitCast(DstAddr, DstOpType); in createMemCpyLoopKnownSize() 115 : RBuilder.CreateBitCast(SrcAddr, SrcPtrType); in createMemCpyLoopKnownSize() 124 : RBuilder.CreateBitCast(DstAddr, DstPtrType); in createMemCpyLoopKnownSize() 160 SrcAddr = PLBuilder.CreateBitCast(SrcAddr, SrcOpType); in createMemCpyLoopUnknownSize() 163 DstAddr = PLBuilder.CreateBitCast(DstAddr, DstOpType); in createMemCpyLoopUnknownSize() 232 ResBuilder.CreateBitCast(SrcAddr, PointerType::get(Int8Type, SrcAS)); in createMemCpyLoopUnknownSize() 234 ResBuilder.CreateBitCast(DstAddr, PointerType::get(Int8Type, DstAS)); in createMemCpyLoopUnknownSize() 380 DstAddr = Builder.CreateBitCast(DstAddr, in createMemSetLoop()
|
D | VNCoercion.cpp | 61 StoredVal = Helper.CreateBitCast(StoredVal, LoadedTy); in coerceAvailableValueToLoadTypeHelper() 74 StoredVal = Helper.CreateBitCast(StoredVal, TypeToCastTo); in coerceAvailableValueToLoadTypeHelper() 102 StoredVal = Helper.CreateBitCast(StoredVal, StoredValTy); in coerceAvailableValueToLoadTypeHelper() 124 StoredVal = Helper.CreateBitCast(StoredVal, LoadedTy); in coerceAvailableValueToLoadTypeHelper() 327 SrcVal = Helper.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize * 8)); in getStoreValueForLoadHelper() 393 PtrVal = Builder.CreateBitCast(PtrVal, DestPTy); in getLoadValueForLoad()
|
/external/swiftshader/third_party/LLVM/ |
D | OnlyX86.patch | 86 - Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), 97 - Value *Ptr = Builder->CreateBitCast(II->getArgOperand(1), OpPtrTy); 105 + // Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), 116 + // Value *Ptr = Builder->CreateBitCast(II->getArgOperand(1), OpPtrTy); 144 - Value *Op0 = Builder->CreateBitCast(II->getArgOperand(0), 146 - Value *Op1 = Builder->CreateBitCast(II->getArgOperand(1), 191 + // Value *Op0 = Builder->CreateBitCast(II->getArgOperand(0), 193 + // Value *Op1 = Builder->CreateBitCast(II->getArgOperand(1),
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPULowerKernelArguments.cpp | 145 ArgPtr = Builder.CreateBitCast(ArgPtr, in runOnFunction() 153 ArgPtr = Builder.CreateBitCast(ArgPtr, ArgTy->getPointerTo(AS), in runOnFunction() 160 ArgPtr = Builder.CreateBitCast(ArgPtr, V4Ty->getPointerTo(AS)); in runOnFunction() 208 Value *NewVal = Builder.CreateBitCast(Trunc, ArgTy, in runOnFunction()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SITypeRewriter.cpp | 80 Value *BitCast = Builder.CreateBitCast(Ptr, in visitLoadInst() 88 Value *BitCastLoad = Builder.CreateBitCast(Load, I.getType()); in visitLoadInst() 108 Args.push_back(Builder.CreateBitCast(Arg, v4i32)); in visitCallInst()
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | ir_emission_utils.cc | 225 llvm::Value* x = builder->CreateBitCast( in EmitFullWarpShuffleDown() 227 builder->CreateBitCast(value, builder->getIntNTy(bit_width)), in EmitFullWarpShuffleDown() 240 return builder->CreateBitCast( in EmitFullWarpShuffleDown() 242 builder->CreateBitCast(x, builder->getIntNTy(32 * num_segments)), in EmitFullWarpShuffleDown()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 748 Op = Builder.CreateBitCast(Op, VecTy, "cast"); in UpgradeX86PSLLDQIntrinsics() 770 return Builder.CreateBitCast(Res, ResultTy, "cast"); in UpgradeX86PSLLDQIntrinsics() 782 Op = Builder.CreateBitCast(Op, VecTy, "cast"); in UpgradeX86PSRLDQIntrinsics() 804 return Builder.CreateBitCast(Res, ResultTy, "cast"); in UpgradeX86PSRLDQIntrinsics() 811 Mask = Builder.CreateBitCast(Mask, MaskTy); in getX86MaskVec() 848 Mask = Builder.CreateBitCast(Mask, MaskTy); in EmitX86ScalarSelect() 906 Ptr = Builder.CreateBitCast(Ptr, in UpgradeMaskedStore() 926 Ptr = Builder.CreateBitCast(Ptr, in UpgradeMaskedLoad() 973 Value *LHS = Builder.CreateBitCast(CI.getArgOperand(0), Ty); in upgradePMULDQ() 974 Value *RHS = Builder.CreateBitCast(CI.getArgOperand(1), Ty); in upgradePMULDQ() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | ExpandMemCmp.cpp | 205 Source1 = Builder.CreateBitCast(Source1, LoadSizeType->getPointerTo()); in emitLoadCompareByteBlock() 207 Source2 = Builder.CreateBitCast(Source2, LoadSizeType->getPointerTo()); in emitLoadCompareByteBlock() 278 Source1 = Builder.CreateBitCast(Source1, LoadSizeType->getPointerTo()); in getCompareLoadPairs() 280 Source2 = Builder.CreateBitCast(Source2, LoadSizeType->getPointerTo()); in getCompareLoadPairs() 397 Source1 = Builder.CreateBitCast(Source1, LoadSizeType->getPointerTo()); in emitLoadCompareBlock() 399 Source2 = Builder.CreateBitCast(Source2, LoadSizeType->getPointerTo()); in emitLoadCompareBlock() 528 Source1 = Builder.CreateBitCast(Source1, LoadSizeType->getPointerTo()); in getMemCmpOneBlock() 530 Source2 = Builder.CreateBitCast(Source2, LoadSizeType->getPointerTo()); in getMemCmpOneBlock()
|
/external/llvm/lib/IR/ |
D | AutoUpgrade.cpp | 432 Op = Builder.CreateBitCast(Op, VecTy, "cast"); in UpgradeX86PSLLDQIntrinsics() 454 return Builder.CreateBitCast(Res, ResultTy, "cast"); in UpgradeX86PSLLDQIntrinsics() 466 Op = Builder.CreateBitCast(Op, VecTy, "cast"); in UpgradeX86PSRLDQIntrinsics() 488 return Builder.CreateBitCast(Res, ResultTy, "cast"); in UpgradeX86PSRLDQIntrinsics() 495 Mask = Builder.CreateBitCast(Mask, MaskTy); in getX86MaskVec() 565 Ptr = Builder.CreateBitCast(Ptr, in UpgradeMaskedStore() 585 Ptr = Builder.CreateBitCast(Ptr, in UpgradeMaskedLoad() 630 return Builder.CreateBitCast(Cmp, IntegerType::get(CI.getContext(), in upgradeMaskedCompare() 735 Value *Addr = Builder.CreateBitCast(Arg0, EltPtrTy, "cast"); in UpgradeIntrinsicCall() 757 Value *BC = Builder.CreateBitCast(Arg0, in UpgradeIntrinsicCall() [all …]
|
/external/bcc/src/cc/frontends/b/ |
D | codegen_llvm.cc | 385 Value *skb_ptr8 = B.CreateBitCast(skb_ptr, B.getInt8PtrTy()); in visit_packet_expr_node() 396 Value *skb_ptr8 = B.CreateBitCast(skb_ptr, B.getInt8PtrTy()); in visit_packet_expr_node() 593 Value *key_ptr = B.CreateBitCast(pop_expr(), B.getInt8PtrTy()); in emit_table_lookup() 607 … expr_ = B.CreateBitCast(pop_expr(), cast<PointerType>(it->second->getType())->getElementType()); in emit_table_lookup() 634 Value *key_ptr = B.CreateBitCast(pop_expr(), B.getInt8PtrTy()); in emit_table_update() 638 Value *value_ptr = B.CreateBitCast(pop_expr(), B.getInt8PtrTy()); in emit_table_update() 664 Value *key_ptr = B.CreateBitCast(pop_expr(), B.getInt8PtrTy()); in emit_table_delete() 703 Value *lhs = B.CreateBitCast(pop_expr(), Type::getInt64PtrTy(ctx())); in emit_atomic_add() 743 Value *skb_ptr8 = B.CreateBitCast(skb_ptr, B.getInt8PtrTy()); in emit_incr_cksum() 805 Value *key_ptr = B.CreateBitCast(pop_expr(), B.getInt8PtrTy()); in visit_table_index_expr_node() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86WinEHState.cpp | 381 Value *FI8 = Builder.CreateBitCast(F, Type::getInt8PtrTy(F->getContext())); in emitEHLSDA() 416 Builder.CreateBitCast(PersonalityFn, TargetFuncTy->getPointerTo()); in generateLSDAInEAXThunk() 435 Value *HandlerI8 = Builder.CreateBitCast(Handler, Builder.getInt8PtrTy()); in linkExceptionRegistration() 493 Builder.CreateBitCast(CS.getArgOperand(0), Builder.getInt8PtrTy())); in rewriteSetJmpCallSite() 645 Value *RegNodeI8 = Builder.CreateBitCast(RegNode, Builder.getInt8PtrTy()); in addStateStores() 653 Builder.CreateBitCast(EHGuardNode, Builder.getInt8PtrTy()); in addStateStores()
|
/external/llvm/lib/Target/X86/ |
D | X86WinEHState.cpp | 375 Value *FI8 = Builder.CreateBitCast(F, Type::getInt8PtrTy(F->getContext())); in emitEHLSDA() 408 Builder.CreateBitCast(PersonalityFn, TargetFuncTy->getPointerTo()); in generateLSDAInEAXThunk() 427 Value *HandlerI8 = Builder.CreateBitCast(Handler, Builder.getInt8PtrTy()); in linkExceptionRegistration() 485 Builder.CreateBitCast(CS.getArgOperand(0), Builder.getInt8PtrTy())); in rewriteSetJmpCallSite() 637 Value *RegNodeI8 = Builder.CreateBitCast(RegNode, Builder.getInt8PtrTy()); in addStateStores() 645 Builder.CreateBitCast(EHGuardNode, Builder.getInt8PtrTy()); in addStateStores()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 159 Value *Src = Builder->CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyMemTransfer() 160 Value *Dest = Builder->CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyMemTransfer() 199 Dest = Builder->CreateBitCast(Dest, NewDstPtrTy); in SimplifyMemSet() 599 Builder.CreateBitCast(Op0, ShufTy), in simplifyX86extrq() 601 return Builder.CreateBitCast(SV, II.getType()); in simplifyX86extrq() 679 Value *SV = Builder.CreateShuffleVector(Builder.CreateBitCast(Op0, ShufTy), in simplifyX86insertq() 680 Builder.CreateBitCast(Op1, ShufTy), in simplifyX86insertq() 682 return Builder.CreateBitCast(SV, II.getType()); in simplifyX86insertq() 1131 Value *PtrCast = IC.Builder->CreateBitCast(Ptr, VecPtrTy, "castvec"); in simplifyX86MaskedLoad() 1174 Value *PtrCast = IC.Builder->CreateBitCast(Ptr, VecPtrTy, "castvec"); in simplifyX86MaskedStore() [all …]
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerAggrCopies.cpp | 80 SrcAddr = Builder.CreateBitCast(SrcAddr, Builder.getInt8PtrTy(SrcAS)); in convertMemCpyToLoop() 81 DstAddr = Builder.CreateBitCast(DstAddr, Builder.getInt8PtrTy(DstAS)); in convertMemCpyToLoop() 221 DstAddr = Builder.CreateBitCast(DstAddr, in convertMemSetToLoop()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCalls.cpp | 166 Value *Src = Builder.CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyAnyMemTransfer() 167 Value *Dest = Builder.CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyAnyMemTransfer() 225 Dest = Builder.CreateBitCast(Dest, NewDstPtrTy); in SimplifyAnyMemSet() 658 Mask = Builder.CreateBitCast(Mask, MaskTy); in simplifyX86round() 837 Builder.CreateBitCast(Op0, ShufTy), in simplifyX86extrq() 839 return Builder.CreateBitCast(SV, II.getType()); in simplifyX86extrq() 917 Value *SV = Builder.CreateShuffleVector(Builder.CreateBitCast(Op0, ShufTy), in simplifyX86insertq() 918 Builder.CreateBitCast(Op1, ShufTy), in simplifyX86insertq() 920 return Builder.CreateBitCast(SV, II.getType()); in simplifyX86insertq() 1298 Result = IC.Builder.CreateBitCast(Result, II.getType()); in simplifyInvariantGroupIntrinsic() [all …]
|
D | InstCombineCasts.cpp | 154 Value *NewCast = AllocaBuilder.CreateBitCast(New, AI.getType(), "tmpcast"); in PromoteCastOfAllocation() 484 VecInput = IC.Builder.CreateBitCast(VecInput, VecType, "bc"); in foldVecTruncToExtElt() 1807 InVal = IC.Builder.CreateBitCast(InVal, SrcTy); in optimizeVectorResize() 2013 auto *NewBC = IC.Builder.CreateBitCast(ExtElt->getVectorOperand(), in canonicalizeBitCastExtElt() 2038 Value *CastedOp1 = Builder.CreateBitCast(BO->getOperand(1), DestTy); in foldBitCastBitwiseLogic() 2045 Value *CastedOp0 = Builder.CreateBitCast(BO->getOperand(0), DestTy); in foldBitCastBitwiseLogic() 2056 Value *CastedOp0 = Builder.CreateBitCast(BO->getOperand(0), DestTy); in foldBitCastBitwiseLogic() 2094 Value *CastedVal = Builder.CreateBitCast(FVal, DestTy); in foldBitCastSelect() 2101 Value *CastedVal = Builder.CreateBitCast(TVal, DestTy); in foldBitCastSelect() 2201 NewV = Builder.CreateBitCast(LI, DestTy); in optimizeBitCastFromPhi() [all …]
|