MCPcopy Create free account
hub / github.com/csyonghe/Spire / OpDecorate

Method OpDecorate

Source/SpireCore/SpirVCodeGen.cpp:1022–1033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020 return len;
1021 }
1022 void OpDecorate(const int ID, const Decoration deco, int op1 = 0)
1023 {
1024 sbTextAnnotation << LR"(OpDecorate %)" << ID;
1025
1026 int len_i = streamAnnotation.Count();
1027 streamAnnotation.Add(0);
1028 streamAnnotation.Add(ID);
1029 int deco_len = Decorate(deco, op1);
1030 streamAnnotation[len_i] = 71 + ((2 + deco_len) << 16);
1031
1032 sbTextAnnotation << EndLine;
1033 }
1034 void OpMemberDecorate(const int ID, const int memberIndex, const Decoration deco, int op1 = 0)
1035 {
1036 sbTextAnnotation << LR"(OpMemberDecorate %)" << ID << LR"( )" << memberIndex;

Callers 2

DefineTypeMethod · 0.80
AddInstrDecorateMethod · 0.80

Calls 2

CountMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected