@@ -54,7 +54,7 @@ __orc_rt_jit_dispatch(__orc_rt_Opaque *DispatchCtx, const void *FnTag,
54
54
template <typename RecordElement> class RecordSectionsTracker {
55
55
public:
56
56
// / Add a section to the "new" list.
57
- void add (__orc_rt ::span<RecordElement> Sec) { New.push_back (std::move (Sec)); }
57
+ void add (orc_rt ::span<RecordElement> Sec) { New.push_back (std::move (Sec)); }
58
58
59
59
// / Returns true if there are new sections to process.
60
60
bool hasNewSections () const { return !New.empty (); }
@@ -65,7 +65,7 @@ template <typename RecordElement> class RecordSectionsTracker {
65
65
// / Process all new sections.
66
66
template <typename ProcessSectionFunc>
67
67
std::enable_if_t <std::is_void_v<
68
- std::invoke_result_t <ProcessSectionFunc, __orc_rt ::span<RecordElement>>>>
68
+ std::invoke_result_t <ProcessSectionFunc, orc_rt ::span<RecordElement>>>>
69
69
processNewSections (ProcessSectionFunc &&ProcessSection) {
70
70
for (auto &Sec : New)
71
71
ProcessSection (Sec);
@@ -78,10 +78,10 @@ template <typename RecordElement> class RecordSectionsTracker {
78
78
// / list.
79
79
template <typename ProcessSectionFunc>
80
80
std::enable_if_t <
81
- std::is_same_v<__orc_rt ::Error,
81
+ std::is_same_v<orc_rt ::Error,
82
82
std::invoke_result_t <ProcessSectionFunc,
83
- __orc_rt ::span<RecordElement>>>,
84
- __orc_rt ::Error>
83
+ orc_rt ::span<RecordElement>>>,
84
+ orc_rt ::Error>
85
85
processNewSections (ProcessSectionFunc &&ProcessSection) {
86
86
for (size_t I = 0 ; I != New.size (); ++I) {
87
87
if (auto Err = ProcessSection (New[I])) {
@@ -92,7 +92,7 @@ template <typename RecordElement> class RecordSectionsTracker {
92
92
}
93
93
}
94
94
moveNewToProcessed ();
95
- return __orc_rt ::Error::success ();
95
+ return orc_rt ::Error::success ();
96
96
}
97
97
98
98
// / Move all sections back to New for reprocessing.
@@ -102,7 +102,7 @@ template <typename RecordElement> class RecordSectionsTracker {
102
102
}
103
103
104
104
// / Remove the section with the given range.
105
- bool removeIfPresent (__orc_rt ::ExecutorAddrRange R) {
105
+ bool removeIfPresent (orc_rt ::ExecutorAddrRange R) {
106
106
if (removeIfPresent (New, R))
107
107
return true ;
108
108
return removeIfPresent (Processed, R);
@@ -119,11 +119,11 @@ template <typename RecordElement> class RecordSectionsTracker {
119
119
}
120
120
}
121
121
122
- bool removeIfPresent (std::vector<__orc_rt ::span<RecordElement>> &V,
123
- __orc_rt ::ExecutorAddrRange R) {
122
+ bool removeIfPresent (std::vector<orc_rt ::span<RecordElement>> &V,
123
+ orc_rt ::ExecutorAddrRange R) {
124
124
auto RI = std::find_if (V.rbegin (), V.rend (),
125
125
[RS = R.toSpan <RecordElement>()](
126
- const __orc_rt ::span<RecordElement> &E) {
126
+ const orc_rt ::span<RecordElement> &E) {
127
127
return E.data () == RS.data ();
128
128
});
129
129
if (RI != V.rend ()) {
@@ -133,7 +133,7 @@ template <typename RecordElement> class RecordSectionsTracker {
133
133
return false ;
134
134
}
135
135
136
- std::vector<__orc_rt ::span<RecordElement>> Processed;
137
- std::vector<__orc_rt ::span<RecordElement>> New;
136
+ std::vector<orc_rt ::span<RecordElement>> Processed;
137
+ std::vector<orc_rt ::span<RecordElement>> New;
138
138
};
139
139
#endif // ORC_RT_COMMON_H
0 commit comments