File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
llvm/tools/sycl-post-link Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ struct EntryPointGroup {
82
82
const Properties &Props)
83
83
: GroupId(GroupId), Functions(std::move(Functions)), Props(Props) {}
84
84
85
- // Tells if this group has only ESIMD entry points (based on GroupId) .
85
+ // Tells if this group has only ESIMD entry points.
86
86
bool isEsimd () const {
87
87
return Props.HasESIMD == SyclEsimdSplitStatus::ESIMD_ONLY;
88
88
}
89
- // Tells if this group has only SYCL entry points (based on GroupId) .
89
+ // Tells if this group has only SYCL entry points.
90
90
bool isSycl () const {
91
91
return Props.HasESIMD == SyclEsimdSplitStatus::SYCL_ONLY;
92
92
}
@@ -100,6 +100,13 @@ struct EntryPointGroup {
100
100
101
101
using EntryPointGroupVec = std::vector<EntryPointGroup>;
102
102
103
+ // Annotates an llvm::Module with information necessary to perform and track
104
+ // result of device code (llvm::Module instances) splitting:
105
+ // - entry points of the module determined e.g. by a module splitter, as well
106
+ // as information about entry point origin (e.g. result of a scoped split)
107
+ // - its properties, such as whether it has specialization constants uses
108
+ // It also provides convenience functions for entry point set transformation
109
+ // between llvm::Function object and string representations.
103
110
class ModuleDesc {
104
111
std::unique_ptr<Module> M;
105
112
EntryPointGroup EntryPoints;
You can’t perform that action at this time.
0 commit comments