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

Method FindValueID

Source/SpireCore/SpirVCodeGen.cpp:1921–1931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1919 }
1920
1921 int FindValueID(ILOperand *op)
1922 {
1923 auto it = StackVariableNameToValueID.end();
1924 while (it != StackVariableNameToValueID.begin())
1925 {
1926 it--;
1927 if (it->ContainsKey(op))
1928 return (*it)[op];
1929 }
1930 return -1;
1931 }
1932
1933 void InvalidateValue(ILOperand *op)
1934 {

Callers 2

GetOperandValueMethod · 0.80
GetOperandPointerMethod · 0.80

Calls 3

endMethod · 0.45
beginMethod · 0.45
ContainsKeyMethod · 0.45

Tested by

no test coverage detected