Skip to content

Commit 71b5305

Browse files
committed
comment giving example of json content
1 parent 54cc882 commit 71b5305

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/lib/Transforms/IPO/FunctionImport.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,11 @@ class WorkloadImportsManager : public ModuleImportsManager {
568568
std::map<std::string, std::vector<std::string>> WorkloadDefs;
569569
json::Path::Root NullRoot;
570570
// The JSON is supposed to contain a dictionary matching the type of
571-
// WorkloadDefs.
571+
// WorkloadDefs. For example:
572+
// {
573+
// "rootFunction_1": ["function_to_import_1", "function_to_import_2"],
574+
// "rootFunction_2": ["function_to_import_3", "function_to_import_4"]
575+
// }
572576
auto Parsed = json::parse(Buffer->getBuffer());
573577
if (!Parsed)
574578
report_fatal_error(Parsed.takeError());

0 commit comments

Comments
 (0)