/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenFunction.h | 333 typedef llvm::function_ref<std::pair<LValue, LValue>( 1389 const LValue &lv) { 1465 LValue lvalue) 1717 llvm::DenseMap<const OpaqueValueExpr *, LValue> OpaqueLValues; 2391 void EmitLambdaVLACapture(const VariableArrayType *VAT, LValue LV) { 2430 void EmitInitializerForField(FieldDecl *Field, LValue LHS, Expr *Init); 2697 LValue MakeAddrLValue(Address Addr, QualType T, 2703 LValue MakeAddrLValue(Address Addr, QualType T, LValueBaseInfo BaseInfo, 2705 return LValue::MakeAddr(Addr, T, getContext(), BaseInfo, TBAAInfo); 2708 LValue MakeAddrLValue(llvm::Value *V, QualType T, CharUnits Alignment, [all …]
|
H A D | CGValue.h | 182 class LValue { 350 LValue setKnownNonNull() { 432 static LValue MakeAddr(Address Addr, QualType type, ASTContext &Context, 434 LValue R; 442 static LValue MakeVectorElt(Address vecAddress, llvm::Value *Idx, 445 LValue R; 452 static LValue MakeExtVectorElt(Address Addr, llvm::Constant *Elts, 455 LValue R; 468 static LValue MakeBitfield(Address Addr, const CGBitFieldInfo &Info, 471 LValue R; [all …]
|
H A D | CGExpr.cpp | 276 LValue LV = MakeAddrLValue(Location, E->getType()); in EmitAnyExprToMem() 452 LValue CodeGenFunction:: 481 LValue RefTempDst = MakeAddrLValue(Object, M->getType(), in EmitMaterializeTemporaryExpr() 605 LValue LV = MakeAddrLValue(Object, E->getType(), AlignmentSource::Decl); in EmitMaterializeTemporaryExpr() 628 LValue LV = EmitLValue(E); in EmitReferenceBindingToExpr() 1130 LValue LV = EmitLValue(StructBase); in EmitCountedByFieldExpr() 1206 EmitComplexPrePostIncDec(const UnaryOperator *E, LValue LV, in EmitComplexPrePostIncDec() 1354 LValue LV = CGF.EmitLValue(UO->getSubExpr(), IsKnownNonNull); in EmitPointerWithAlignment() 1369 LValue LV = CGF.EmitLValue(Call->getArg(0), IsKnownNonNull); in EmitPointerWithAlignment() 1436 LValue CodeGenFunction::EmitUnsupportedLValue(const Expr *E, in EmitUnsupportedLValue() [all …]
|
H A D | CGExprAgg.cpp | 83 void EmitFinalDestCopy(QualType type, const LValue &src, 208 LValue LV = CGF.EmitPseudoObjectLValue(E); in VisitPseudoObjectExpr() 229 void EmitInitializationToLValue(Expr *E, LValue Address); 230 void EmitNullInitializationToLValue(LValue Address); 251 LValue LV = CGF.EmitLValue(E); in EmitAggLoadOfLValue() 343 LValue srcLV = CGF.MakeAddrLValue(src.getAggregateAddress(), type); in EmitFinalDestCopy() 349 QualType type, const LValue &src, in EmitFinalDestCopy() 359 LValue DstLV = CGF.MakeAddrLValue( in EmitFinalDestCopy() 405 LValue DestLV = CGF.MakeAddrLValue(dest.getAddress(), type); in EmitCopy() 406 LValue SrcLV = CGF.MakeAddrLValue(src.getAddress(), type); in EmitCopy() [all …]
|
H A D | CGAtomic.cpp | 40 LValue LVal; 43 AtomicInfo(CodeGenFunction &CGF, LValue &lvalue) in AtomicInfo() 96 LVal = LValue::MakeBitfield( in AtomicInfo() 139 const LValue &getAtomicLValue() const { return LVal; } in getAtomicLValue() 210 LValue projectValue() const { in projectValue() 216 return LValue::MakeAddr(addr, getValueType(), CGF.getContext(), in projectValue() 831 LValue lvalue = MakeAddrLValue(Ptr, AtomicTy); in EmitAtomicExpr() 1004 LValue AtomicVal = MakeAddrLValue(Ptr, AtomicTy); in EmitAtomicExpr() 1392 LValue::MakeBitfield(addr, LVal.getBitFieldInfo(), LVal.getType(), in convertAtomicTempToRValue() 1396 LValue::MakeVectorElt(addr, LVal.getVectorIdx(), LVal.getType(), in convertAtomicTempToRValue() [all …]
|
H A D | CGOpenMPRuntime.h | 149 SmallVector<std::pair<LValue, LValue>, 4> SharedAddresses; 151 SmallVector<std::pair<LValue, LValue>, 4> OrigAddresses; 158 LValue emitSharedLValue(CodeGenFunction &CGF, const Expr *E); 160 LValue emitSharedLValueUB(CodeGenFunction &CGF, const Expr *E); 207 LValue getSharedLValue(unsigned N) const { return SharedAddresses[N].first; } in getSharedLValue() 209 LValue getOrigLValue(unsigned N) const { return OrigAddresses[N].first; } in getOrigLValue() 274 LValue IVLVal; 300 LValue IVLVal); 429 const FieldDecl *, LValue>>> 574 LValue TDBase; [all …]
|
H A D | CGCall.h | 233 LValue LV; /// The argument is semantically a load from this l-value. 245 CallArg(LValue lv, QualType ty) in CallArg() 254 LValue getKnownLValue() const { in getKnownLValue() 281 LValue Source; 300 void addUncopiedAggregate(LValue LV, QualType type) { in addUncopiedAggregate() 319 void addWriteback(LValue srcLV, Address temporary, llvm::Value *toUse) { in addWriteback()
|
H A D | CGExprComplex.cpp | 83 ComplexPairTy EmitLoadOfLValue(LValue LV, SourceLocation Loc); 87 void EmitStoreOfComplex(ComplexPairTy Val, LValue LV, bool isInit); 202 LValue LV = CGF.EmitLValue(E->getSubExpr()); in VisitPrePostIncDec() 271 LValue EmitCompoundAssignLValue(const CompoundAssignOperator *E, 395 LValue EmitBinAssignLValue(const BinaryOperator *E, 439 ComplexPairTy ComplexExprEmitter::EmitLoadOfLValue(LValue lvalue, in EmitLoadOfLValue() 465 void ComplexExprEmitter::EmitStoreOfComplex(ComplexPairTy Val, LValue lvalue, in EmitStoreOfComplex() 561 LValue origLV = CGF.EmitLValue(Op); in EmitCast() 567 LValue SourceLVal = CGF.EmitLValue(Op); in EmitCast() 570 LValue DestLV = CGF.MakeAddrLValue(Addr, DestTy); in EmitCast() [all …]
|
H A D | TargetInfo.h | 187 CodeGen::CodeGenFunction &CGF, CodeGen::LValue ReturnValue, in addReturnRegisterOutputs() 190 std::vector<CodeGen::LValue> &ResultRegDests, std::string &AsmString, in addReturnRegisterOutputs() 399 LValue Dst, in emitCUDADeviceBuiltinSurfaceDeviceCopy() 400 LValue Src) const { in emitCUDADeviceBuiltinSurfaceDeviceCopy() 406 LValue Dst, in emitCUDADeviceBuiltinTextureDeviceCopy() 407 LValue Src) const { in emitCUDADeviceBuiltinTextureDeviceCopy()
|
H A D | CGNonTrivialStruct.cpp | 544 LValue DstLV, SrcLV; in visitVolatileTrivial() 553 LValue DstBase = in visitVolatileTrivial() 557 LValue SrcBase = in visitVolatileTrivial() 711 LValue SrcLV = CGF->MakeAddrLValue(Addrs[SrcIdx], QT); in visitARCStrong() 774 LValue SrcLV = CGF->MakeAddrLValue(Addrs[SrcIdx], QT); in visitARCStrong() 778 LValue DstLV = CGF->MakeAddrLValue(Addrs[DstIdx], QT); in visitARCStrong() 811 void CodeGenFunction::defaultInitNonTrivialCStructVar(LValue Dst) { in defaultInitNonTrivialCStructVar() 843 void CodeGenFunction::callCStructDefaultConstructor(LValue Dst) { in callCStructDefaultConstructor() 867 void CodeGenFunction::callCStructDestructor(LValue Dst) { in callCStructDestructor() 878 void CodeGenFunction::callCStructCopyConstructor(LValue Dst, LValue Src) { in callCStructCopyConstructor() [all …]
|
H A D | CGOpenMPRuntime.cpp | 94 virtual LValue getThreadIDVariableLValue(CodeGenFunction &CGF); 166 LValue PartIdLVal = CGF.EmitLoadOfPointerLValue( in Enter() 183 LValue PartIdLVal = CGF.EmitLoadOfPointerLValue( in emitUntiedSwitch() 216 LValue getThreadIDVariableLValue(CodeGenFunction &CGF) override; 289 LValue getThreadIDVariableLValue(CodeGenFunction &CGF) override { in getThreadIDVariableLValue() 627 LValue LV = CGF.MakeNaturalAlignRawAddrLValue(GV, Ty); in emitInitWithReductionInitializer() 741 LValue ReductionCodeGen::emitSharedLValue(CodeGenFunction &CGF, const Expr *E) { in emitSharedLValue() 745 LValue ReductionCodeGen::emitSharedLValueUB(CodeGenFunction &CGF, in emitSharedLValueUB() 749 return LValue(); in emitSharedLValueUB() 791 LValue First = emitSharedLValue(CGF, ClausesData[N].Shared); in emitSharedOrigLValue() [all …]
|
H A D | CGObjC.cpp | 139 LValue LV = MakeNaturalAlignAddrLValue(Constant, IdTy); in EmitObjCCollectionLiteral() 173 LValue LV = MakeAddrLValue(Builder.CreateConstArrayGEP(Objects, i), in EmitObjCCollectionLiteral() 184 LValue KeyLV = MakeAddrLValue(Builder.CreateConstArrayGEP(Keys, i), in EmitObjCCollectionLiteral() 191 LValue ValueLV = MakeAddrLValue(Builder.CreateConstArrayGEP(Objects, i), in EmitObjCCollectionLiteral() 588 LValue lvalue = EmitLValue(lvalueExpr); in EmitObjCMessageExpr() 803 LValue lvalue, QualType type); 1144 LValue Src = in generateObjCGetterBody() 1146 LValue Dst = MakeAddrLValue(ReturnValue, ivar->getType()); in generateObjCGetterBody() 1184 LValue LV = EmitLValueForIvar(TypeOfSelfObject(), LoadObjCSelf(), ivar, 0); in generateObjCGetterBody() 1269 LValue LV = EmitLValueForIvar(TypeOfSelfObject(), LoadObjCSelf(), ivar, 0); in generateObjCGetterBody() [all …]
|
H A D | CGStmtOpenMP.cpp | 316 LValue CodeGenFunction::EmitOMPSharedLValue(const Expr *E) { in EmitOMPSharedLValue() 376 LValue DstLV = MakeAddrLValue(DstAddr, Ctx.getUIntPtrType()); in GenerateOpenMPCapturedVars() 382 LValue SrcLV = in GenerateOpenMPCapturedVars() 401 LValue AddrLV) { in castValueFromUintptr() 587 LValue ArgLVal = CGF.MakeAddrLValue(LocalAddr, Args[Cnt]->getType(), in emitOutlinedFunctionPrologue() 693 LValue LV = WrapperCGF.MakeAddrLValue( in GenerateOpenMPCapturedStmtFunction() 705 LValue LV = in GenerateOpenMPCapturedStmtFunction() 794 LValue Dest = MakeAddrLValue(DestAddr, OriginalType); in EmitOMPCopy() 795 LValue Src = MakeAddrLValue(SrcAddr, OriginalType); in EmitOMPCopy() 882 LValue OriginalLVal; in EmitOMPFirstprivateClause() [all …]
|
H A D | CGClass.cpp | 618 LValue &LHS) { in EmitLValueForAnyFieldInitialization() 646 LValue LHS; in EmitMemberInitializer() 674 LValue ThisRHSLV = CGF.MakeNaturalAlignAddrLValue(SrcPtr, RecordTy); in EmitMemberInitializer() 675 LValue Src = CGF.EmitLValueForFieldInitialization(ThisRHSLV, Field); in EmitMemberInitializer() 692 void CodeGenFunction::EmitInitializerForField(FieldDecl *Field, LValue LHS, in EmitInitializerForField() 980 LValue DestLV = CGF.MakeAddrLValue(ThisPtr, RecordTy); in emitMemcpy() 981 LValue Dest = CGF.EmitLValueForFieldInitialization(DestLV, FirstField); in emitMemcpy() 983 LValue SrcLV = CGF.MakeNaturalAlignAddrLValue(SrcPtr, RecordTy); in emitMemcpy() 984 LValue Src = CGF.EmitLValueForFieldInitialization(SrcLV, FirstField); in emitMemcpy() 1125 LValue LHS = CGF.MakeAddrLValue(ThisPtr, RecordTy); in pushEHDestructors() [all …]
|
H A D | CGStmt.cpp | 1417 LValue Dest = MakeAddrLValue(ReturnValue, Ty); in EmitReturnOfRValue() 1418 LValue Src = MakeAddrLValue(RV.getAggregateAddress(), Ty); in EmitReturnOfRValue() 2379 const TargetInfo::ConstraintInfo &Info, LValue InputValue, in EmitAsmInputLValue() 2430 LValue Dest = EmitLValue(InputExpr); in EmitAsmInput() 2531 const llvm::ArrayRef<LValue> ResultRegDests, in EmitAsmStores() 2587 LValue Dest = ResultRegDests[i]; in EmitAsmStores() 2675 std::vector<LValue> ResultRegDests; in EmitAsmStmt() 2726 LValue Dest = EmitLValue(OutExpr); in EmitAsmStmt() 2849 LValue ReturnSlot = MakeAddrLValueWithoutTBAA(ReturnValue, FnRetTy); in EmitAsmStmt() 3099 LValue CodeGenFunction::InitCapturedStruct(const CapturedStmt &S) { in InitCapturedStruct() [all …]
|
H A D | CGObjCRuntime.cpp | 54 LValue CGObjCRuntime::EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, in EmitValueForIvarAtOffset() 70 LValue LV = CGF.MakeNaturalAlignRawAddrLValue(V, IvarTy); in EmitValueForIvarAtOffset() 112 return LValue::MakeBitfield(Addr, *Info, IvarTy, in EmitValueForIvarAtOffset()
|
H A D | CGObjCRuntime.h | 87 LValue EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, 304 virtual LValue EmitObjCValueForIvar(CodeGen::CodeGenFunction &CGF,
|
H A D | CGDecl.cpp | 719 const LValue &destLV, const Expr *init) { in tryEmitARCCopyWeakInit() 739 LValue srcLV = CGF.EmitLValue(srcExpr); in tryEmitARCCopyWeakInit() 768 LValue &lvalue, in drillIntoBlockVariable() 773 void CodeGenFunction::EmitNullabilityCheck(LValue LHS, llvm::Value *RHS, in EmitNullabilityCheck() 795 LValue lvalue, bool capturedByInit) { in EmitScalarInit() 824 LValue tempLV = lvalue; in EmitScalarInit() 1619 LValue Base = MakeAddrLValue(AddrSizePair.first, D.getType(), in EmitAutoVarAlloca() 1912 LValue Dst = MakeAddrLValue(emission.getAllocatedAddress(), type); in EmitAutoVarInit() 2002 LValue lv = MakeAddrLValue(Loc, type); in EmitAutoVarInit() 2009 LValue lv = MakeAddrLValue(Loc, type); in EmitAutoVarInit() [all …]
|
H A D | CGPointerAuth.cpp | 607 llvm::Value *LValue::getPointer(CodeGenFunction &CGF) const { in getPointer() 612 llvm::Value *LValue::emitResignedPointer(QualType PointeeTy, in emitResignedPointer() 618 llvm::Value *LValue::emitRawPointer(CodeGenFunction &CGF) const { in emitRawPointer()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | EvaluationResult.h | 36 LValue, // Result is an lvalue/pointer. enumerator 67 Kind = LValue; in setPointer() 72 Kind = LValue; in setFunctionPointer() 89 bool isLValue() const { return Kind == LValue; } in isLValue()
|
H A D | EvaluationResult.cpp | 21 case LValue: in toAPValue() 43 assert(Kind == LValue); in toRValue()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | NVPTX.cpp | 66 bool emitCUDADeviceBuiltinSurfaceDeviceCopy(CodeGenFunction &CGF, LValue Dst, in emitCUDADeviceBuiltinSurfaceDeviceCopy() 67 LValue Src) const override { in emitCUDADeviceBuiltinSurfaceDeviceCopy() 72 bool emitCUDADeviceBuiltinTextureDeviceCopy(CodeGenFunction &CGF, LValue Dst, in emitCUDADeviceBuiltinTextureDeviceCopy() 73 LValue Src) const override { in emitCUDADeviceBuiltinTextureDeviceCopy() 84 static void emitBuiltinSurfTexDeviceCopy(CodeGenFunction &CGF, LValue Dst, in emitBuiltinSurfTexDeviceCopy() 85 LValue Src) { in emitBuiltinSurfTexDeviceCopy()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprConstant.cpp | 78 struct LValue; 539 const LValue *This; 596 const FunctionDecl *Callee, const LValue *This, 631 ScopeKind Scope, LValue &LV); 634 APValue &createParam(CallRef Args, const ParmVarDecl *PVD, LValue &LV); 661 ThisOverrideRAII(CallStackFrame &Frame, const LValue *NewThis, bool Enable) in ThisOverrideRAII() 671 const LValue *OldThis; 702 const LValue &This, QualType ThisType); 1098 APValue *createHeapAlloc(const Expr *E, QualType T, LValue &LV); 1495 const FunctionDecl *Callee, const LValue *This, in CallStackFrame() [all …]
|
H A D | APValue.cpp | 343 case LValue: in APValue() 416 else if (Kind == LValue) in DestroyDataAndMakeUninit() 460 case LValue: in needsCleanup() 595 case LValue: in Profile() 747 case APValue::LValue: { in printPretty() 1082 Kind = LValue; in MakeLValue() 1168 case APValue::LValue: { in getLVForValue()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | GenericTaintChecker.cpp | 112 SVal getPointeeOf(ProgramStateRef State, Loc LValue) { in getPointeeOf() argument 113 const QualType ArgTy = LValue.getType(State->getStateManager().getContext()); in getPointeeOf() 115 return State->getSVal(LValue); in getPointeeOf() 119 return State->getSVal(LValue, State->getStateManager().getContext().CharTy); in getPointeeOf() 124 if (auto LValue = Arg.getAs<Loc>()) in getPointeeOf() local 125 return getPointeeOf(State, *LValue); in getPointeeOf()
|