We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1a3c62 + ea935b9 commit 502f743Copy full SHA for 502f743
llvm/lib/YkIR/YkIRWriter.cpp
@@ -31,6 +31,7 @@ class SerialiseInstructionException {
31
string &what() { return S; }
32
};
33
34
+#define YK_OUTLINE_FNATTR "yk_outline"
35
const char *SectionName = ".yk_ir";
36
const uint32_t Magic = 0xedd5f00d;
37
const uint32_t Version = 0;
@@ -705,6 +706,8 @@ class YkIRWriter {
705
706
serialiseString(F.getName());
707
// type_idx:
708
OutStreamer.emitSizeT(typeIndex(F.getFunctionType()));
709
+ // outline:
710
+ OutStreamer.emitInt8(F.hasFnAttribute(YK_OUTLINE_FNATTR));
711
// num_blocks:
712
OutStreamer.emitSizeT(F.size());
713
// blocks:
0 commit comments