Home
last modified time | relevance | path

Searched refs:CreateBitCast (Results 1 – 25 of 57) sorted by relevance

123

/external/clang/lib/CodeGen/
DCGBuiltin.cpp98 Args[0] = CGF.Builder.CreateBitCast(DestPtr, IntPtrType); in EmitBinaryAtomic()
135 Args[0] = CGF.Builder.CreateBitCast(DestPtr, IntPtrType); in EmitBinaryAtomicPost()
225 ArgValue = Builder.CreateBitCast(ArgValue, DestType, in EmitBuiltinExpr()
238 DstPtr = Builder.CreateBitCast(DstPtr, Type); in EmitBuiltinExpr()
239 SrcPtr = Builder.CreateBitCast(SrcPtr, Type); in EmitBuiltinExpr()
843 Buf = Builder.CreateBitCast(Buf, Int8PtrTy); in EmitBuiltinExpr()
848 Buf = Builder.CreateBitCast(Buf, Int8PtrTy); in EmitBuiltinExpr()
969 Args[0] = Builder.CreateBitCast(DestPtr, IntPtrType); in EmitBuiltinExpr()
998 Args[0] = Builder.CreateBitCast(DestPtr, IntPtrType); in EmitBuiltinExpr()
1035 Ptr = Builder.CreateBitCast(Ptr, ITy->getPointerTo()); in EmitBuiltinExpr()
[all …]
DCGObjC.cpp86 return Builder.CreateBitCast(result.getScalarVal(), in EmitObjCBoxedExpr()
201 return Builder.CreateBitCast(result.getScalarVal(), in EmitObjCCollectionLiteral()
243 return RValue::get(CGF.Builder.CreateBitCast(Result.getScalarVal(), in AdjustRelatedResultType()
424 newSelf = Builder.CreateBitCast(newSelf, selfTy); in EmitObjCMessageExpr()
529 llvm::Value *dest = CGF.Builder.CreateBitCast(CGF.ReturnValue, CGF.VoidPtrTy); in emitStructGetterCall()
532 src = CGF.Builder.CreateBitCast(src, CGF.VoidPtrTy); in emitStructGetterCall()
799 ivarAddr = CGF.Builder.CreateBitCast(ivarAddr, CGF.Int8PtrTy); in emitCPPObjectAtomicGetterCall()
859 ivarAddr = Builder.CreateBitCast(ivarAddr, bitcastType); in generateObjCGetterBody()
867 Builder.CreateStore(load, Builder.CreateBitCast(ReturnValue, bitcastType)); in generateObjCGetterBody()
887 llvm::Value *self = Builder.CreateBitCast(LoadObjCSelf(), VoidPtrTy); in generateObjCGetterBody()
[all …]
DCGObjCRuntime.cpp95 llvm::Value *V = CGF.Builder.CreateBitCast(BaseValue, CGF.Int8PtrTy); in EmitValueForIvarAtOffset()
99 V = CGF.Builder.CreateBitCast(V, llvm::PointerType::getUnqual(LTy)); in EmitValueForIvarAtOffset()
139 V = CGF.Builder.CreateBitCast(V, in EmitValueForIvarAtOffset()
255 llvm::Value *CastExn = CGF.Builder.CreateBitCast(Exn, CatchType); in EmitTryCatchStmt()
328 lock = CGF.Builder.CreateBitCast(lock, CGF.VoidPtrTy); in EmitAtSynchronizedStmt()
DCGCall.cpp705 return CGF.Builder.CreateBitCast(Val, Ty, "coerce.val"); in CoerceIntOrPtrToIntOrPtr()
785 CGF.Builder.CreateBitCast(SrcPtr, llvm::PointerType::getUnqual(Ty)); in CreateCoercedLoad()
796 llvm::Value *Casted = CGF.Builder.CreateBitCast(Tmp, I8PtrTy); in CreateCoercedLoad()
797 llvm::Value *SrcCasted = CGF.Builder.CreateBitCast(SrcPtr, I8PtrTy); in CreateCoercedLoad()
868 CGF.Builder.CreateBitCast(DstPtr, llvm::PointerType::getUnqual(SrcTy)); in CreateCoercedStore()
884 llvm::Value *Casted = CGF.Builder.CreateBitCast(Tmp, I8PtrTy); in CreateCoercedStore()
885 llvm::Value *DstCasted = CGF.Builder.CreateBitCast(DstPtr, I8PtrTy); in CreateCoercedStore()
1437 llvm::Value *Dst = Builder.CreateBitCast(AlignedTemp, I8PtrTy); in EmitFunctionProlog()
1438 llvm::Value *Src = Builder.CreateBitCast(V, I8PtrTy); in EmitFunctionProlog()
1478 V = Builder.CreateBitCast(V, ArgI.getCoerceToType()); in EmitFunctionProlog()
[all …]
DCGBlocks.cpp796 src = Builder.CreateBitCast(src, VoidPtrTy); in EmitBlockLiteral()
872 Builder.CreateBitCast(blockAddr, in EmitBlockLiteral()
944 Builder.CreateBitCast(Callee, BlockLiteralTy, "block.literal"); in EmitBlockCallExpr()
949 BlockLiteral = Builder.CreateBitCast(BlockLiteral, VoidPtrTy); in EmitBlockCallExpr()
972 Func = Builder.CreateBitCast(Func, BlockFTyPtr); in EmitBlockCallExpr()
997 addr = Builder.CreateBitCast(addr, byrefPointerType, in GetAddrOfBlockDecl()
1005 addr = Builder.CreateBitCast(addr, byrefPointerType); in GetAddrOfBlockDecl()
1145 BlockPointer = Builder.CreateBitCast(blockAddr, in GenerateBlockFunction()
1318 src = Builder.CreateBitCast(src, structPtrTy, "block.source"); in GenerateCopyHelperFunction()
1322 dst = Builder.CreateBitCast(dst, structPtrTy, "block.dest"); in GenerateCopyHelperFunction()
[all …]
DMicrosoftCXXABI.cpp634 Value = CGF.Builder.CreateBitCast(Value, CGF.Int8PtrTy); in performBaseAdjustment()
677 return CGF.Builder.CreateBitCast( in EmitTypeid()
716 return CGF.Builder.CreateBitCast(Value, DestLTy); in EmitDynamicCastCall()
871 Int8This = Builder.CreateBitCast(getThisValue(CGF), in initializeHiddenVirtualInheritanceMembers()
876 VtorDispPtr = Builder.CreateBitCast( in initializeHiddenVirtualInheritanceMembers()
891 CGF.Builder.CreateBitCast(getThisValue(CGF), CGM.Int8PtrTy, "this.int8"); in EmitVBPtrStores()
906 VBPtr = CGF.Builder.CreateBitCast(VBPtr, GV->getType()->getPointerTo(0), in EmitVBPtrStores()
980 This = CGF.Builder.CreateBitCast(This, charPtrTy); in adjustThisArgumentForVirtualFunctionCall()
1013 This = CGF.Builder.CreateBitCast(This, charPtrTy); in adjustThisArgumentForVirtualFunctionCall()
1020 This = CGF.Builder.CreateBitCast(This, charPtrTy); in adjustThisArgumentForVirtualFunctionCall()
[all …]
DCGObjCMac.cpp1795 CGF.Builder.CreateBitCast(Receiver, ObjCTypes.ObjectPtrTy); in GenerateMessageSendSuper()
1830 Target = CGF.Builder.CreateBitCast(Target, ClassTy); in GenerateMessageSendSuper()
1867 Arg0 = CGF.Builder.CreateBitCast(Arg0, ObjCTypes.ObjectPtrTy); in EmitMessageSend()
3802 SyncArg = CGF.Builder.CreateBitCast(SyncArg, ObjCTypes.ObjectPtrTy); in EmitTryOrSynchronizedStmt()
4010 CGF.Builder.CreateBitCast(Caught, in EmitTryOrSynchronizedStmt()
4100 CGF.Builder.CreateBitCast(Exception, ObjCTypes.ObjectPtrTy); in EmitThrowStmt()
4123 AddrWeakObj = CGF.Builder.CreateBitCast(AddrWeakObj, in EmitObjCWeakRead()
4128 read_weak = CGF.Builder.CreateBitCast(read_weak, DestTy); in EmitObjCWeakRead()
4141 src = (Size == 4) ? CGF.Builder.CreateBitCast(src, ObjCTypes.IntTy) in EmitObjCWeakAssign()
4142 : CGF.Builder.CreateBitCast(src, ObjCTypes.LongLongTy); in EmitObjCWeakAssign()
[all …]
DTargetInfo.cpp1058 llvm::Value *VAListAddrAsBPP = Builder.CreateBitCast(VAListAddr, BPP, in EmitVAArg()
1081 llvm::Value *AddrTyped = Builder.CreateBitCast(Addr, PTy); in EmitVAArg()
2532 CGF.Builder.CreateBitCast(overflow_arg_area, in EmitVAArgFromMemory()
2629 Tmp = CGF.Builder.CreateBitCast(Tmp, ST->getPointerTo()); in EmitVAArg()
2642 CGF.Builder.CreateLoad(CGF.Builder.CreateBitCast(RegLoAddr, PTyLo)); in EmitVAArg()
2644 V = CGF.Builder.CreateLoad(CGF.Builder.CreateBitCast(RegHiAddr, PTyHi)); in EmitVAArg()
2647 RegAddr = CGF.Builder.CreateBitCast(Tmp, in EmitVAArg()
2651 RegAddr = CGF.Builder.CreateBitCast(RegAddr, in EmitVAArg()
2666 RegAddr = CGF.Builder.CreateBitCast(RegAddr, in EmitVAArg()
2679 Tmp = CGF.Builder.CreateBitCast(Tmp, ST->getPointerTo()); in EmitVAArg()
[all …]
DCGClass.cpp104 V = Builder.CreateBitCast(V, Int8PtrTy); in GetAddressOfDirectBaseInCompleteClass()
107 V = Builder.CreateBitCast(V, ConvertType(Base)->getPointerTo()); in GetAddressOfDirectBaseInCompleteClass()
132 ptr = CGF.Builder.CreateBitCast(ptr, CGF.Int8PtrTy); in ApplyNonVirtualAndVirtualOffset()
182 return Builder.CreateBitCast(Value, BasePtrTy); in GetAddressOfBaseClass()
213 Value = Builder.CreateBitCast(Value, BasePtrTy); in GetAddressOfBaseClass()
247 return Builder.CreateBitCast(Value, DerivedPtrTy); in GetAddressOfDerivedClass()
265 Value = Builder.CreateBitCast(Value, Int8PtrTy); in GetAddressOfDerivedClass()
270 Value = Builder.CreateBitCast(Value, DerivedPtrTy); in GetAddressOfDerivedClass()
619 llvm::Value *BaseAddrPtr = Builder.CreateBitCast(LHS.getAddress(), in EmitInitializerForField()
861 DestPtr = CGF.Builder.CreateBitCast(DestPtr, DBP); in emitMemcpyIR()
[all …]
DItaniumCXXABI.cpp404 llvm::Value *Ptr = Builder.CreateBitCast(This, Builder.getInt8PtrTy()); in EmitLoadOfMemberFunctionPointer()
406 This = Builder.CreateBitCast(Ptr, This->getType(), "this.adjusted"); in EmitLoadOfMemberFunctionPointer()
437 VTable = Builder.CreateBitCast(VTable, FTy->getPointerTo()->getPointerTo()); in EmitLoadOfMemberFunctionPointer()
467 Base = Builder.CreateBitCast(Base, Builder.getInt8Ty()->getPointerTo(AS)); in EmitMemberDataPointerAddress()
476 return Builder.CreateBitCast(Addr, PType); in EmitMemberDataPointerAddress()
855 ptr = CGF.Builder.CreateBitCast(ptr, CGF.Int8PtrTy); in adjustToCompleteObject()
999 Value = CGF.Builder.CreateBitCast(Value, DestLTy); in EmitDynamicCastCall()
1037 return CGF.Builder.CreateBitCast(Value, DestLTy); in EmitDynamicCastToVoid()
1060 VBaseOffsetPtr = CGF.Builder.CreateBitCast(VBaseOffsetPtr, in GetVirtualBaseClassOffset()
1375 llvm::Value *V = CGF.Builder.CreateBitCast(Ptr, Int8PtrTy); in performTypeAdjustment()
[all …]
DCGStmtOpenMP.cpp43 Builder.CreateBitCast(OutlinedFn, in EmitOMPParallelDirective()
DCGException.cpp368 llvm::Value *typedAddr = CGF.Builder.CreateBitCast(addr, ty); in EmitAnyExprToExn()
950 llvm::Value *Casted = CGF.Builder.CreateBitCast(AdjustedExn, PtrTy); in InitCatchParam()
959 CGF.Builder.CreateBitCast(AdjustedExn, LLVMCatchTy, "exn.byref"); in InitCatchParam()
973 CGF.Builder.CreateBitCast(AdjustedExn, LLVMCatchTy, "exn.casted"); in InitCatchParam()
996 llvm::Value *Cast = CGF.Builder.CreateBitCast(AdjustedExn, PtrTy); in InitCatchParam()
1026 llvm::Value *adjustedExn = CGF.Builder.CreateBitCast(rawAdjustedExn, PtrTy); in InitCatchParam()
1037 llvm::Value *adjustedExn = CGF.Builder.CreateBitCast(rawAdjustedExn, PtrTy); in InitCatchParam()
1137 typeValue = CGF.Builder.CreateBitCast(typeValue, CGF.Int8PtrTy); in emitCatchDispatchBlock()
DCGAtomic.cpp749 Ptr = Builder.CreateBitCast(Ptr, IPtrTy); in EmitAtomicExpr()
750 if (Val1) Val1 = Builder.CreateBitCast(Val1, IPtrTy); in EmitAtomicExpr()
751 if (Val2) Val2 = Builder.CreateBitCast(Val2, IPtrTy); in EmitAtomicExpr()
752 if (Dest && !E->isCmpXChg()) Dest = Builder.CreateBitCast(Dest, IPtrTy); in EmitAtomicExpr()
867 return CGF.Builder.CreateBitCast(addr, ty->getPointerTo(addrspace)); in emitCastToAtomicIntPointer()
948 result = Builder.CreateBitCast(result, resultTy); in EmitAtomicLoad()
1081 intValue = Builder.CreateBitCast(value, inputIntTy); in EmitAtomicStore()
DCodeGenFunction.cpp1155 llvm::Value *begin = Builder.CreateBitCast(dest, i8p, "vla.begin"); in emitNonZeroVLAInit()
1200 DestPtr = Builder.CreateBitCast(DestPtr, BP); in EmitNullInitialization()
1250 Builder.CreateBitCast(NullVariable, Builder.getInt8PtrTy()); in EmitNullInitialization()
1367 addr = Builder.CreateBitCast(addr, BaseType, "array.begin"); in emitArrayLength()
1601 Builder.CreateBitCast(CGM.EmitAnnotationString(AnnotationStr), Int8PtrTy), in EmitAnnotationCall()
1602 Builder.CreateBitCast(CGM.EmitAnnotationUnit(Location), Int8PtrTy), in EmitAnnotationCall()
1614 Builder.CreateBitCast(V, CGM.Int8PtrTy, V->getName()), in EmitVarAnnotations()
1632 V = Builder.CreateBitCast(V, VTy); in EmitFieldAnnotations()
DCGExprCXX.cpp783 CurPtr = Builder.CreateBitCast(CurPtr, AllocPtrTy); in EmitNewArrayInitializer()
805 Builder.CreateStore(Builder.CreateBitCast(CurPtr, BeginPtr->getType()), in EmitNewArrayInitializer()
830 CurPtr = Builder.CreateBitCast(CurPtr, BeginPtr->getType()); in EmitNewArrayInitializer()
1303 llvm::Value *result = Builder.CreateBitCast(allocation, elementPtrTy); in EmitCXXNewExpr()
1313 result = Builder.CreateBitCast(result, resultType); in EmitCXXNewExpr()
1361 llvm::Value *DeletePtr = Builder.CreateBitCast(Ptr, ConvertType(ArgTy)); in EmitDeleteCall()
1496 = CGF.Builder.CreateBitCast(Ptr, CGF.ConvertType(VoidPtrTy)); in Emit()
1657 return Builder.CreateBitCast(TypeInfo, StdTypeInfoPtrTy); in EmitCXXTypeidExpr()
1670 return Builder.CreateBitCast(CGM.GetAddrOfRTTIDescriptor(OperandTy), in EmitCXXTypeidExpr()
DCGExpr.cpp49 return Builder.CreateBitCast(value, destType); in EmitCastToVoidPtr()
490 llvm::Value *CastAddr = Builder.CreateBitCast(Address, Int8PtrTy); in EmitTypeCheck()
552 llvm::Value *VPtrAddr = Builder.CreateBitCast(Address, VPtrTy); in EmitTypeCheck()
1086 llvm::Value *Cast = Builder.CreateBitCast(Addr, ptVec4Ty, in EmitLoadOfScalar()
1215 Addr = Builder.CreateBitCast(Addr, MemTy, "storetmp"); in EmitStoreOfScalar()
1743 return CGF.Builder.CreateBitCast(V, IRType->getPointerTo(AS), Name); in EmitBitCastOfLValueToProperType()
1783 V = CGF.Builder.CreateBitCast(V, CGF.ConvertType(NoProtoType)); in EmitFunctionDeclLValue()
2137 V = Builder.CreateBitCast(V, llvm::Type::getIntNTy(getLLVMContext(), in EmitCheckValue()
2217 Args.push_back(Builder.CreateBitCast(InfoPtr, Int8PtrTy)); in EmitCheck()
2355 Address = Builder.CreateBitCast(Address, Base->getType()); in EmitArraySubscriptExpr()
[all …]
/external/llvm/lib/Target/R600/
DSITypeRewriter.cpp87 Value *BitCast = Builder.CreateBitCast(Ptr, in visitLoadInst()
95 Value *BitCastLoad = Builder.CreateBitCast(Load, I.getType()); in visitLoadInst()
112 Args.push_back(Builder.CreateBitCast(Arg, v4i32)); in visitCallInst()
/external/llvm/lib/Target/NVPTX/
DNVPTXLowerAggrCopies.cpp52 srcAddr = builder.CreateBitCast(srcAddr, Type::getInt8PtrTy(Context, srcAS)); in convertTransferToLoop()
53 dstAddr = builder.CreateBitCast(dstAddr, Type::getInt8PtrTy(Context, dstAS)); in convertTransferToLoop()
88 builder.CreateBitCast(dstAddr, PointerType::get(val->getType(), dstAS)); in convertMemSetToLoop()
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp664 Value *Fn = IRB.CreateBitCast(Fn0, MS.AnyFunctionPtrTy); in materializeIndirectCalls()
669 IRB.CreateBitCast(MS.MsandrModuleStart, MS.AnyFunctionPtrTy); in materializeIndirectCalls()
670 Value *End = IRB.CreateBitCast(MS.MsandrModuleEnd, MS.AnyFunctionPtrTy); in materializeIndirectCalls()
685 Value *NewFn = IRB.CreateBitCast( in materializeIndirectCalls()
692 Value *NewFn = IRB.CreateBitCast( in materializeIndirectCalls()
790 return IRB.CreateBitCast(V, NoVecTy); in convertToShadowTyNoVec()
1188 setShadow(&I, IRB.CreateBitCast(getShadow(&I, 0), getShadowTy(&I))); in visitBitCastInst()
1373 Value *V1 = IRB.CreateBitCast(V, Type::getIntNTy(*MS.C, srcSizeInBits)); in CreateShadowCast()
1376 return IRB.CreateBitCast(V2, dstTy); in CreateShadowCast()
1388 return IRB.CreateBitCast(V, ShadowTy); in CreateAppToShadowCast()
[all …]
DDataFlowSanitizer.cpp983 IRB.CreateBitCast(ShadowAddr, Type::getInt64PtrTy(*DFS.Ctx)); in loadShadow()
1067 IRB.CreateBitCast(ShadowAddr, PointerType::getUnqual(ShadowTy)); in storeShadow()
1082 IRB.CreateBitCast(ShadowAddr, PointerType::getUnqual(ShadowVecTy)); in storeShadow()
1199 IRB.CreateBitCast(I.getDest(), Type::getInt8PtrTy(*DFSF.DFS.Ctx)), in visitMemSetInst()
1220 DestShadow = IRB.CreateBitCast(DestShadow, Int8Ptr); in visitMemTransferInst()
1221 SrcShadow = IRB.CreateBitCast(SrcShadow, Int8Ptr); in visitMemTransferInst()
1317 IRB.CreateBitCast(*i, Type::getInt8PtrTy(*DFSF.DFS.Ctx))); in visitCallSite()
1391 IRB.CreateBitCast(CS.getCalledValue(), PointerType::getUnqual(NewFT)); in visitCallSite()
/external/llvm/lib/IR/
DAutoUpgrade.cpp280 Value *BC = Builder.CreateBitCast(Arg0, in UpgradeIntrinsicCall()
346 Value *Cast = Builder.CreateBitCast(CI->getArgOperand(0), in UpgradeIntrinsicCall()
458 Builder.CreateBitCast(Arg0, in UpgradeIntrinsicCall()
462 Builder.CreateBitCast(Arg1, in UpgradeIntrinsicCall()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp140 Value *Src = Builder->CreateBitCast(MI->getArgOperand(1), NewSrcPtrTy); in SimplifyMemTransfer()
141 Value *Dest = Builder->CreateBitCast(MI->getArgOperand(0), NewDstPtrTy); in SimplifyMemTransfer()
180 Dest = Builder->CreateBitCast(Dest, NewDstPtrTy); in SimplifyMemSet()
525 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), in visitCallInst()
536 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(1), OpPtrTy); in visitCallInst()
547 Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), OpPtrTy); in visitCallInst()
839 Value *Op0 = Builder->CreateBitCast(II->getArgOperand(0), in visitCallInst()
841 Value *Op1 = Builder->CreateBitCast(II->getArgOperand(1), in visitCallInst()
1384 Args.push_back(Builder->CreateBitCast(*AI, ParamTy)); in transformConstExprCastCall()
1546 NestVal = Builder->CreateBitCast(NestVal, NestTy, "nest"); in transformCallThroughTrampoline()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp710 SrcPtr = Builder.CreateBitCast(SrcPtr, AIPTy); in ConvertUsesToScalar()
727 Value *DstPtr = Builder.CreateBitCast(MTI->getDest(), AIPTy); in ConvertUsesToScalar()
778 return Builder.CreateBitCast(FromVal, ToType); in ConvertScalar_ExtractValue()
800 V = Builder.CreateBitCast(V, ToType); in ConvertScalar_ExtractValue()
876 FromVal = Builder.CreateBitCast(FromVal, ToType); in ConvertScalar_ExtractValue()
914 return Builder.CreateBitCast(SV, AllocaType); in ConvertScalar_InsertValue()
919 SV = Builder.CreateBitCast(SV, EltTy); in ConvertScalar_InsertValue()
968 SV = Builder.CreateBitCast(SV, IntegerType::get(SV->getContext(),SrcWidth)); in ConvertScalar_InsertValue()
2114 Value *V = Builder.CreateBitCast(NewElts[Idx], Builder.getInt8PtrTy(AS)); in RewriteLifetimeIntrinsic()
2379 EltVal = Builder.CreateBitCast(EltVal, FieldTy); in RewriteStoreUserOfWholeAlloca()
[all …]
DScalarizer.cpp209 CV[0] = Builder.CreateBitCast(V, Ty, V->getName() + ".i0"); in operator []()
491 Res[I] = Builder.CreateBitCast(Op0[I], DstVT->getElementType(), in visitBitCastInst()
507 V = Builder.CreateBitCast(V, MidTy, V->getName() + ".cast"); in visitBitCastInst()
523 Res[ResI] = Builder.CreateBitCast(V, DstVT->getElementType(), in visitBitCastInst()
/external/llvm/lib/CodeGen/
DSjLjEHPrepare.cpp227 Builder.CreateBitCast(PersonalityFn, Builder.getInt8PtrTy()), in setupFunctionContext()
436 Value *SetjmpArg = Builder.CreateBitCast(JBufPtr, Builder.getInt8PtrTy()); in setupEntryBlockAndCallSites()
441 Value *FuncCtxArg = Builder.CreateBitCast(FuncCtx, Builder.getInt8PtrTy()); in setupEntryBlockAndCallSites()

123