Home
last modified time | relevance | path

Searched refs:RecordStorageLocation (Results 1 – 12 of 12) sorted by relevance

/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp17 void clang::dataflow::copyRecord(RecordStorageLocation &Src, in copyRecord()
18 RecordStorageLocation &Dst, Environment &Env) { in copyRecord()
45 copyRecord(cast<RecordStorageLocation>(*SrcFieldLoc), in copyRecord()
46 cast<RecordStorageLocation>(*DstFieldLoc), Env); in copyRecord()
59 copyRecord(*cast<RecordStorageLocation>(SynthFieldLoc), in copyRecord()
60 cast<RecordStorageLocation>(Dst.getSyntheticField(Name)), Env); in copyRecord()
73 bool clang::dataflow::recordsEqual(const RecordStorageLocation &Loc1, in recordsEqual()
75 const RecordStorageLocation &Loc2, in recordsEqual()
94 if (!recordsEqual(cast<RecordStorageLocation>(*FieldLoc1), Env1, in recordsEqual()
95 cast<RecordStorageLocation>(*FieldLoc2), Env2)) in recordsEqual()
[all …]
H A DDataflowEnvironment.cpp493 cast<RecordStorageLocation>(getStorageLocation(*Arg)); in pushCall()
763 RecordStorageLocation &
770 [this, &RecordPRValue]() -> RecordStorageLocation & { in getResultObjectLocation()
771 return cast<RecordStorageLocation>( in getResultObjectLocation()
904 RecordStorageLocation::SyntheticFieldMap SyntheticFieldLocs; in createValueUnlessSelfReferential()
1046 return &cast<RecordStorageLocation>(Val->getPointeeLoc()); in getImplicitObjectLocation()
1049 return cast_or_null<RecordStorageLocation>( in getImplicitObjectLocation()
1053 RecordStorageLocation *getBaseObjectLocation(const MemberExpr &ME, in getBaseObjectLocation()
1060 return &cast<RecordStorageLocation>(Val->getPointeeLoc()); in getBaseObjectLocation()
1063 return Env.get<RecordStorageLocation>(*Base); in getBaseObjectLocation()
[all …]
H A DDataflowAnalysisContext.cpp72 RecordStorageLocation::SyntheticFieldMap SyntheticFields; in createStorageLocation()
91 RecordStorageLocation &DataflowAnalysisContext::createRecordStorageLocation( in createRecordStorageLocation()
92 QualType Type, RecordStorageLocation::FieldToLoc FieldLocs, in createRecordStorageLocation()
93 RecordStorageLocation::SyntheticFieldMap SyntheticFields) { in createRecordStorageLocation()
99 return arena().create<RecordStorageLocation>(Type, std::move(FieldLocs), in createRecordStorageLocation()
406 const clang::dataflow::RecordStorageLocation::FieldToLoc &FieldLocs) { in containsSameFields()
H A DTransfer.cpp443 RecordStorageLocation *BaseLoc = getBaseObjectLocation(*S, Env); in VisitMemberExpr()
471 auto *ArgLoc = Env.get<RecordStorageLocation>(*Arg); in VisitCXXConstructExpr()
516 RecordStorageLocation *LocSrc = nullptr; in VisitCXXOperatorCallExpr()
521 LocSrc = Env.get<RecordStorageLocation>(*Arg1); in VisitCXXOperatorCallExpr()
523 auto *LocDst = Env.get<RecordStorageLocation>(*Arg0); in VisitCXXOperatorCallExpr()
714 RecordStorageLocation::SyntheticFieldMap SyntheticFieldLocs; in VisitInitListExpr()
H A DTypeErasedDataflowAnalysis.cpp375 RecordStorageLocation *ParentLoc = &ThisLoc; in builtinTransferInitializer()
386 ParentLoc = cast<RecordStorageLocation>(MemberLoc); in builtinTransferInitializer()
414 *cast<RecordStorageLocation>(MemberLoc), Env); in builtinTransferInitializer()
H A DHTMLLogger.cpp132 if (auto *RLoc = dyn_cast<RecordStorageLocation>(&L)) { in dump()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DRecordOps.h35 void copyRecord(RecordStorageLocation &Src, RecordStorageLocation &Dst,
56 bool recordsEqual(const RecordStorageLocation &Loc1, const Environment &Env1,
57 const RecordStorageLocation &Loc2, const Environment &Env2);
59 inline bool recordsEqual(const RecordStorageLocation &Loc1, in recordsEqual()
60 const RecordStorageLocation &Loc2, in recordsEqual()
H A DDataflowEnvironment.h312 RecordStorageLocation *getThisPointeeStorageLocation() const { in getThisPointeeStorageLocation()
318 void setThisPointeeStorageLocation(RecordStorageLocation &Loc) { in setThisPointeeStorageLocation()
345 RecordStorageLocation &
695 RecordStorageLocation *ThisPointeeLoc = nullptr;
717 RecordStorageLocation *getImplicitObjectLocation(const CXXMemberCallExpr &MCE,
723 RecordStorageLocation *getBaseObjectLocation(const MemberExpr &ME,
731 RecordValue &refreshRecordValue(RecordStorageLocation &Loc, Environment &Env);
H A DDataflowAnalysisContext.h63 const RecordStorageLocation::FieldToLoc &FieldLocs);
128 RecordStorageLocation &createRecordStorageLocation(
129 QualType Type, RecordStorageLocation::FieldToLoc FieldLocs,
130 RecordStorageLocation::SyntheticFieldMap SyntheticFields);
H A DValue.h212 explicit RecordValue(RecordStorageLocation &Loc) in RecordValue()
220 RecordStorageLocation &getLoc() const { return Loc; } in getLoc()
223 RecordStorageLocation &Loc;
H A DStorageLocation.h94 class RecordStorageLocation final : public StorageLocation {
99 RecordStorageLocation(QualType Type, FieldToLoc TheChildren, in RecordStorageLocation() function
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp256 RecordValue &createOptionalValue(RecordStorageLocation &Loc, in createOptionalValue()
314 if (auto *OptionalLoc = cast_or_null<RecordStorageLocation>( in transferUnwrapCall()
323 if (auto *OptionalLoc = cast_or_null<RecordStorageLocation>( in transferArrowOpCall()
405 RecordStorageLocation *Loc = nullptr; in transferCallReturningOptional()
409 Loc = State.Env.get<RecordStorageLocation>(*E); in transferCallReturningOptional()
452 auto *Loc = State.Env.get<RecordStorageLocation>(E); in valueOrConversionHasValue()
497 void transferSwap(RecordStorageLocation *Loc1, RecordStorageLocation *Loc2, in transferSwap()
599 auto *Loc = Env.get<RecordStorageLocation>(*E); in transferOptionalAndValueCmp()
612 auto *Loc = Env.get<RecordStorageLocation>(*E); in transferOptionalAndNulloptCmp()
722 if (RecordStorageLocation *Loc = in buildTransferMatchSwitch()
[all …]