IR: Print SSA values as %123 instead of %ssa123

This is less noisy with no loss of clarity, and follows the notation
used by both LLVM IR and NIR. (So, it should be familiar.)

Change done with:

    sed -i -e 's/%ssa/%/g' $(git grep -l '%ssa')

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig committed 2023-07-13 11:52:36 -04:00
1 parent 9722c4c5a4
commit 491e4e2c23
20 files changed
+144 -144

No files matched your search

+1 -1
View File
@@ -413,7 +413,7 @@ class IRParser: public FEXCore::IR::IREmitter {
}
// Check if we are pulling in some IR from the IR Printer
// Prints (%ssa%d) at the start of lines without a definition
// Prints (%%d) at the start of lines without a definition
if (Line[0] == '(') {
size_t DefinitionEnd = fextl::string::npos;
if ((DefinitionEnd = Line.find_first_of(')', CurrentPos)) != fextl::string::npos) {