Skip to content

Commit 6b059f7

Browse files
authored
Fix/add more comments.
1 parent 830619e commit 6b059f7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

llvm/tools/sycl-post-link/ModuleSplitter.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ struct EntryPointGroup {
8282
const Properties &Props)
8383
: GroupId(GroupId), Functions(std::move(Functions)), Props(Props) {}
8484

85-
// Tells if this group has only ESIMD entry points (based on GroupId).
85+
// Tells if this group has only ESIMD entry points.
8686
bool isEsimd() const {
8787
return Props.HasESIMD == SyclEsimdSplitStatus::ESIMD_ONLY;
8888
}
89-
// Tells if this group has only SYCL entry points (based on GroupId).
89+
// Tells if this group has only SYCL entry points.
9090
bool isSycl() const {
9191
return Props.HasESIMD == SyclEsimdSplitStatus::SYCL_ONLY;
9292
}
@@ -100,6 +100,13 @@ struct EntryPointGroup {
100100

101101
using EntryPointGroupVec = std::vector<EntryPointGroup>;
102102

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.
103110
class ModuleDesc {
104111
std::unique_ptr<Module> M;
105112
EntryPointGroup EntryPoints;

0 commit comments

Comments
 (0)