Home
last modified time | relevance | path

Searched refs:LValue (Results 1 – 25 of 58) sorted by relevance

123

/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenFunction.h303 typedef llvm::function_ref<std::pair<LValue, LValue>(
1250 const LValue &lv) {
1326 LValue lvalue)
1529 llvm::DenseMap<const OpaqueValueExpr *, LValue> OpaqueLValues;
2167 void EmitLambdaVLACapture(const VariableArrayType *VAT, LValue LV) {
2206 void EmitInitializerForField(FieldDecl *Field, LValue LHS, Expr *Init);
2430 LValue MakeAddrLValue(Address Addr, QualType T,
2432 return LValue::MakeAddr(Addr, T, getContext(), LValueBaseInfo(Source),
2436 LValue MakeAddrLValue(Address Addr, QualType T, LValueBaseInfo BaseInfo,
2438 return LValue::MakeAddr(Addr, T, getContext(), BaseInfo, TBAAInfo);
[all …]
H A DCGValue.h167 class LValue {
389 static LValue MakeAddr(Address address, QualType type, ASTContext &Context, in MakeAddr()
394 LValue R; in MakeAddr()
402 static LValue MakeVectorElt(Address vecAddress, llvm::Value *Idx, in MakeVectorElt()
405 LValue R; in MakeVectorElt()
414 static LValue MakeExtVectorElt(Address vecAddress, llvm::Constant *Elts, in MakeExtVectorElt()
417 LValue R; in MakeExtVectorElt()
432 static LValue MakeBitfield(Address Addr, const CGBitFieldInfo &Info, in MakeBitfield()
435 LValue R; in MakeBitfield()
444 static LValue MakeGlobalReg(Address Reg, QualType type) { in MakeGlobalReg()
[all …]
H A DCGExpr.cpp265 LValue LV = MakeAddrLValue(Location, E->getType()); in EmitAnyExprToMem()
441 LValue CodeGenFunction::
472 LValue RefTempDst = MakeAddrLValue(Object, M->getType(), in EmitMaterializeTemporaryExpr()
595 LValue LV = MakeAddrLValue(Object, E->getType(), AlignmentSource::Decl); in EmitMaterializeTemporaryExpr()
618 LValue LV = EmitLValue(E); in EmitReferenceBindingToExpr()
1021 EmitComplexPrePostIncDec(const UnaryOperator *E, LValue LV, in EmitComplexPrePostIncDec()
1164 LValue LV = EmitLValue(UO->getSubExpr()); in EmitPointerWithAlignment()
1218 LValue CodeGenFunction::EmitUnsupportedLValue(const Expr *E, in EmitUnsupportedLValue()
1249 LValue CodeGenFunction::EmitCheckedLValue(const Expr *E, TypeCheckKind TCK) { in EmitCheckedLValue()
1250 LValue LV; in EmitCheckedLValue()
[all …]
H A DTargetInfo.h153 CodeGen::CodeGenFunction &CGF, CodeGen::LValue ReturnValue, in addReturnRegisterOutputs()
156 std::vector<CodeGen::LValue> &ResultRegDests, std::string &AsmString, in addReturnRegisterOutputs()
348 LValue Dst, in emitCUDADeviceBuiltinSurfaceDeviceCopy()
349 LValue Src) const { in emitCUDADeviceBuiltinSurfaceDeviceCopy()
355 LValue Dst, in emitCUDADeviceBuiltinTextureDeviceCopy()
356 LValue Src) const { in emitCUDADeviceBuiltinTextureDeviceCopy()
H A DCGExprAgg.cpp82 void EmitFinalDestCopy(QualType type, const LValue &src,
198 LValue LV = CGF.EmitPseudoObjectLValue(E); in VisitPseudoObjectExpr()
207 void EmitInitializationToLValue(Expr *E, LValue Address);
208 void EmitNullInitializationToLValue(LValue Address);
226 LValue LV = CGF.EmitLValue(E); in EmitAggLoadOfLValue()
317 LValue srcLV = CGF.MakeAddrLValue(src.getAggregateAddress(), type); in EmitFinalDestCopy()
322 void AggExprEmitter::EmitFinalDestCopy(QualType type, const LValue &src, in EmitFinalDestCopy()
332 LValue DstLV = CGF.MakeAddrLValue( in EmitFinalDestCopy()
378 LValue DestLV = CGF.MakeAddrLValue(dest.getAddress(), type); in EmitCopy()
379 LValue SrcLV = CGF.MakeAddrLValue(src.getAddress(), type); in EmitCopy()
[all …]
H A DCGAtomic.cpp40 LValue LVal;
43 AtomicInfo(CodeGenFunction &CGF, LValue &lvalue) in AtomicInfo()
97 LVal = LValue::MakeBitfield(Address(Addr, lvalue.getAlignment()), in AtomicInfo()
140 const LValue &getAtomicLValue() const { return LVal; } in getAtomicLValue()
200 LValue projectValue() const { in projectValue()
206 return LValue::MakeAddr(addr, getValueType(), CGF.getContext(), in projectValue()
799 LValue lvalue = MakeAddrLValue(Ptr, AtomicTy); in EmitAtomicExpr()
937 LValue AtomicVal = MakeAddrLValue(Ptr, AtomicTy); in EmitAtomicExpr()
1455 LValue::MakeBitfield(addr, LVal.getBitFieldInfo(), LVal.getType(), in convertAtomicTempToRValue()
1459 LValue::MakeVectorElt(addr, LVal.getVectorIdx(), LVal.getType(), in convertAtomicTempToRValue()
[all …]
H A DCGExprComplex.cpp78 ComplexPairTy EmitLoadOfLValue(LValue LV, SourceLocation Loc);
82 void EmitStoreOfComplex(ComplexPairTy Val, LValue LV, bool isInit);
193 LValue LV = CGF.EmitLValue(E->getSubExpr()); in VisitPrePostIncDec()
257 LValue EmitCompoundAssignLValue(const CompoundAssignOperator *E,
309 LValue EmitBinAssignLValue(const BinaryOperator *E,
349 ComplexPairTy ComplexExprEmitter::EmitLoadOfLValue(LValue lvalue, in EmitLoadOfLValue()
375 void ComplexExprEmitter::EmitStoreOfComplex(ComplexPairTy Val, LValue lvalue, in EmitStoreOfComplex()
471 LValue origLV = CGF.EmitLValue(Op); in EmitCast()
478 LValue SourceLVal = CGF.EmitLValue(Op); in EmitCast()
481 LValue DestLV = CGF.MakeAddrLValue(Addr, DestTy); in EmitCast()
[all …]
H A DCGOpenMPRuntime.h150 SmallVector<std::pair<LValue, LValue>, 4> SharedAddresses;
152 SmallVector<std::pair<LValue, LValue>, 4> OrigAddresses;
159 LValue emitSharedLValue(CodeGenFunction &CGF, const Expr *E);
161 LValue emitSharedLValueUB(CodeGenFunction &CGF, const Expr *E);
168 Address PrivateAddr, LValue SharedLVal,
193 LValue SharedLVal,
208 LValue getSharedLValue(unsigned N) const { return SharedAddresses[N].first; } in getSharedLValue()
210 LValue getOrigLValue(unsigned N) const { return OrigAddresses[N].first; } in getOrigLValue()
270 LValue IVLVal;
296 LValue IVLVal);
[all …]
H A DCGCall.h223 LValue LV; /// The argument is semantically a load from this l-value.
235 CallArg(LValue lv, QualType ty) in CallArg()
244 LValue getKnownLValue() const { in getKnownLValue()
271 LValue Source;
290 void addUncopiedAggregate(LValue LV, QualType type) { in addUncopiedAggregate()
309 void addWriteback(LValue srcLV, Address temporary, llvm::Value *toUse) { in addWriteback()
H A DCGOpenMPRuntime.cpp87 virtual LValue getThreadIDVariableLValue(CodeGenFunction &CGF);
159 LValue PartIdLVal = CGF.EmitLoadOfPointerLValue( in Enter()
176 LValue PartIdLVal = CGF.EmitLoadOfPointerLValue( in emitUntiedSwitch()
209 LValue getThreadIDVariableLValue(CodeGenFunction &CGF) override;
282 LValue getThreadIDVariableLValue(CodeGenFunction &CGF) override { in getThreadIDVariableLValue()
649 LValue LV = CGF.MakeNaturalAlignAddrLValue(GV, Ty); in emitInitWithReductionInitializer()
763 LValue ReductionCodeGen::emitSharedLValue(CodeGenFunction &CGF, const Expr *E) { in emitSharedLValue()
767 LValue ReductionCodeGen::emitSharedLValueUB(CodeGenFunction &CGF, in emitSharedLValueUB()
771 return LValue(); in emitSharedLValueUB()
775 CodeGenFunction &CGF, unsigned N, Address PrivateAddr, LValue SharedLVal, in emitAggregateInitialization()
[all …]
H A DCGNonTrivialStruct.cpp554 LValue DstLV, SrcLV; in visitVolatileTrivial()
563 LValue DstBase = this->CGF->MakeAddrLValue( in visitVolatileTrivial()
567 LValue SrcBase = this->CGF->MakeAddrLValue( in visitVolatileTrivial()
721 LValue SrcLV = CGF->MakeAddrLValue(Addrs[SrcIdx], QT); in visitARCStrong()
784 LValue SrcLV = CGF->MakeAddrLValue(Addrs[SrcIdx], QT); in visitARCStrong()
788 LValue DstLV = CGF->MakeAddrLValue(Addrs[DstIdx], QT); in visitARCStrong()
821 void CodeGenFunction::defaultInitNonTrivialCStructVar(LValue Dst) { in defaultInitNonTrivialCStructVar()
854 void CodeGenFunction::callCStructDefaultConstructor(LValue Dst) { in callCStructDefaultConstructor()
878 void CodeGenFunction::callCStructDestructor(LValue Dst) { in callCStructDestructor()
889 void CodeGenFunction::callCStructCopyConstructor(LValue Dst, LValue Src) { in callCStructCopyConstructor()
[all …]
H A DCGStmtOpenMP.cpp285 LValue CodeGenFunction::EmitOMPSharedLValue(const Expr *E) { in EmitOMPSharedLValue()
345 LValue DstLV = MakeAddrLValue(DstAddr, Ctx.getUIntPtrType()); in GenerateOpenMPCapturedVars()
350 LValue SrcLV = in GenerateOpenMPCapturedVars()
369 LValue AddrLV) { in castValueFromUintptr()
545 LValue ArgLVal = CGF.MakeAddrLValue(LocalAddr, Args[Cnt]->getType(), in emitOutlinedFunctionPrologue()
653 LValue LV = WrapperCGF.MakeAddrLValue( in GenerateOpenMPCapturedStmtFunction()
668 LValue LV = WrapperCGF.MakeAddrLValue(WrapperCGF.GetAddrOfLocalVar(Arg), in GenerateOpenMPCapturedStmtFunction()
753 LValue Dest = MakeAddrLValue(DestAddr, OriginalType); in EmitOMPCopy()
754 LValue Src = MakeAddrLValue(SrcAddr, OriginalType); in EmitOMPCopy()
842 LValue OriginalLVal; in EmitOMPFirstprivateClause()
[all …]
H A DCGObjC.cpp136 LValue LV = MakeNaturalAlignAddrLValue(Constant, IdTy); in EmitObjCCollectionLiteral()
170 LValue LV = MakeAddrLValue(Builder.CreateConstArrayGEP(Objects, i), in EmitObjCCollectionLiteral()
181 LValue KeyLV = MakeAddrLValue(Builder.CreateConstArrayGEP(Keys, i), in EmitObjCCollectionLiteral()
188 LValue ValueLV = MakeAddrLValue(Builder.CreateConstArrayGEP(Objects, i), in EmitObjCCollectionLiteral()
586 LValue lvalue = EmitLValue(lvalueExpr); in EmitObjCMessageExpr()
800 LValue lvalue, QualType type);
1145 LValue LV = EmitLValueForIvar(TypeOfSelfObject(), LoadObjCSelf(), ivar, 0); in generateObjCGetterBody()
1234 LValue LV = EmitLValueForIvar(TypeOfSelfObject(), LoadObjCSelf(), ivar, 0); in generateObjCGetterBody()
1428 LValue ivarLValue = in generateObjCSetterBody()
1603 LValue lvalue in Emit()
[all …]
H A DCGClass.cpp618 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()
979 LValue DestLV = CGF.MakeAddrLValue(ThisPtr, RecordTy); in emitMemcpy()
980 LValue Dest = CGF.EmitLValueForFieldInitialization(DestLV, FirstField); in emitMemcpy()
982 LValue SrcLV = CGF.MakeNaturalAlignAddrLValue(SrcPtr, RecordTy); in emitMemcpy()
983 LValue Src = CGF.EmitLValueForFieldInitialization(SrcLV, FirstField); in emitMemcpy()
1132 LValue LHS = CGF.MakeAddrLValue(ThisPtr, RecordTy); in pushEHDestructors()
[all …]
H A DCGStmt.cpp1153 LValue Dest = MakeAddrLValue(ReturnValue, Ty); in EmitReturnOfRValue()
1154 LValue Src = MakeAddrLValue(RV.getAggregateAddress(), Ty); in EmitReturnOfRValue()
2052 LValue InputValue, QualType InputType, in EmitAsmInputLValue()
2109 LValue Dest = EmitLValue(InputExpr); in EmitAsmInput()
2231 std::vector<LValue> ResultRegDests; in EmitAsmStmt()
2279 LValue Dest = EmitLValue(OutExpr); in EmitAsmStmt()
2394 LValue ReturnSlot = MakeAddrLValue(ReturnValue, FnRetTy); in EmitAsmStmt()
2630 LValue Dest = ResultRegDests[i]; in EmitAsmStmt()
2651 LValue CodeGenFunction::InitCapturedStruct(const CapturedStmt &S) { in InitCapturedStruct()
2656 LValue SlotLV = in InitCapturedStruct()
[all …]
H A DCGObjCRuntime.cpp53 LValue CGObjCRuntime::EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, in EmitValueForIvarAtOffset()
71 LValue LV = CGF.MakeNaturalAlignAddrLValue(V, IvarTy); in EmitValueForIvarAtOffset()
113 return LValue::MakeBitfield(Addr, *Info, IvarTy, in EmitValueForIvarAtOffset()
H A DCGObjCRuntime.h86 LValue EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF,
303 virtual LValue EmitObjCValueForIvar(CodeGen::CodeGenFunction &CGF,
H A DCGExprScalar.cpp243 LValue EmitLValue(const Expr *E) { return CGF.EmitLValue(E); } in EmitLValue()
244 LValue EmitCheckedLValue(const Expr *E, CodeGenFunction::TypeCheckKind TCK) { in EmitCheckedLValue()
251 Value *EmitLoadOfLValue(LValue LV, SourceLocation Loc) { in EmitLoadOfLValue()
522 LValue LV = CGF.EmitObjCIsaExpr(E); in VisitObjCIsaExpr()
584 LValue LV = EmitLValue(E->getSubExpr()); in VisitUnaryPostDec()
588 LValue LV = EmitLValue(E->getSubExpr()); in VisitUnaryPostInc()
592 LValue LV = EmitLValue(E->getSubExpr()); in VisitUnaryPreDec()
596 LValue LV = EmitLValue(E->getSubExpr()); in VisitUnaryPreInc()
604 llvm::Value *EmitScalarPrePostIncDec(const UnaryOperator *E, LValue LV,
791 LValue EmitCompoundAssignLValue(const CompoundAssignOperator *E,
[all …]
H A DCGDecl.cpp682 const LValue &destLV, const Expr *init) { in tryEmitARCCopyWeakInit()
702 LValue srcLV = CGF.EmitLValue(srcExpr); in tryEmitARCCopyWeakInit()
732 LValue &lvalue, in drillIntoBlockVariable()
737 void CodeGenFunction::EmitNullabilityCheck(LValue LHS, llvm::Value *RHS, in EmitNullabilityCheck()
759 LValue lvalue, bool capturedByInit) { in EmitScalarInit()
788 LValue tempLV = lvalue; in EmitScalarInit()
1825 LValue Dst = MakeAddrLValue(emission.getAllocatedAddress(), type); in EmitAutoVarInit()
1890 LValue lv = MakeAddrLValue(Loc, type); in EmitAutoVarInit()
1897 LValue lv = MakeAddrLValue(Loc, type); in EmitAutoVarInit()
1919 LValue lvalue, bool capturedByInit) { in EmitExprAsInit()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dgenk-timing.py116 def writeRandomOperation(self, LValue, LHS, RHS): argument
121 self.writeln(" %s = func%d(%s, %s) :" % (LValue, funcToCall, LHS, RHS))
129 self.writeln(" %s = %s %s %s" % (LValue, LHS, operation, RHS))
131 self.writeln(" %s = %s %s %s" % (LValue, LHS, operation, RHS))
133 … self.writeln(" %s = %s %s %f :" % (LValue, LHS, operation, random.uniform(1, 100)))
135 self.writeln(" %s = %s %s %s :" % (LValue, LHS, operation, RHS))
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/complete/
H A Dgenk-timing.py121 def writeRandomOperation(self, LValue, LHS, RHS): argument
126 self.writeln(" %s = func%d(%s, %s) :" % (LValue, funcToCall, LHS, RHS))
134 self.writeln(" %s = %s %s %s" % (LValue, LHS, operation, RHS))
136 self.writeln(" %s = %s %s %s" % (LValue, LHS, operation, RHS))
138 … self.writeln(" %s = %s %s %f :" % (LValue, LHS, operation, random.uniform(1, 100)))
140 self.writeln(" %s = %s %s %s :" % (LValue, LHS, operation, RHS))
/netbsd-src/external/apache2/llvm/dist/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dgenk-timing.py116 def writeRandomOperation(self, LValue, LHS, RHS): argument
121 self.writeln(" %s = func%d(%s, %s) :" % (LValue, funcToCall, LHS, RHS))
129 self.writeln(" %s = %s %s %s" % (LValue, LHS, operation, RHS))
131 self.writeln(" %s = %s %s %s" % (LValue, LHS, operation, RHS))
133 … self.writeln(" %s = %s %s %f :" % (LValue, LHS, operation, random.uniform(1, 100)))
135 self.writeln(" %s = %s %s %s :" % (LValue, LHS, operation, RHS))
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DExprConstant.cpp74 struct LValue;
531 const LValue *This;
585 const FunctionDecl *Callee, const LValue *This,
625 ScopeKind Scope, LValue &LV);
628 APValue &createParam(CallRef Args, const ParmVarDecl *PVD, LValue &LV);
651 ThisOverrideRAII(CallStackFrame &Frame, const LValue *NewThis, bool Enable) in ThisOverrideRAII()
661 const LValue *OldThis;
666 const LValue &This, QualType ThisType);
1035 APValue *createHeapAlloc(const Expr *E, QualType T, LValue &LV);
1438 const FunctionDecl *Callee, const LValue *This, in CallStackFrame()
[all …]
H A DAPValue.cpp343 case LValue: in APValue()
414 else if (Kind == LValue) in DestroyDataAndMakeUninit()
458 case LValue: in needsCleanup()
593 case LValue: in Profile()
679 case APValue::LValue: { in printPretty()
1001 Kind = LValue; in MakeLValue()
1087 case APValue::LValue: { in getLVForValue()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/TableGen/
H A DTGParser.h70 ForeachLoop(SMLoc Loc, VarInit *IVar, Init *LValue) in ForeachLoop()
71 : Loc(Loc), IterVar(IVar), ListValue(LValue) {} in ForeachLoop()

123