diff options
author | vporpo <vporpodas@google.com> | 2025-03-29 10:42:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-29 10:42:51 -0700 |
commit | 3db5be79d24bb48a38e844fafc3db054f8d8cc58 (patch) | |
tree | d9bca93f7dca1ffdb5a01a4d41d0b9e86f1a53c5 /llvm/lib | |
parent | 1ff74917b56e9e57dd13286123144b5f13e9a517 (diff) | |
download | llvm-3db5be79d24bb48a38e844fafc3db054f8d8cc58.zip llvm-3db5be79d24bb48a38e844fafc3db054f8d8cc58.tar.gz llvm-3db5be79d24bb48a38e844fafc3db054f8d8cc58.tar.bz2 |
[SandboxVec] Add print-region pass (#131019)
This patch implements a simple printing pass for regions. This is meant
to be used in tests and for debugging.
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/PassRegistry.def | 1 | ||||
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerPassBuilder.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/PassRegistry.def b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/PassRegistry.def index c525608..f2eb769 100644 --- a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/PassRegistry.def +++ b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/PassRegistry.def @@ -19,6 +19,7 @@ REGION_PASS("null", ::llvm::sandboxir::NullPass) REGION_PASS("print-instruction-count", ::llvm::sandboxir::PrintInstructionCount) +REGION_PASS("print-region", ::llvm::sandboxir::PrintRegion) REGION_PASS("tr-save", ::llvm::sandboxir::TransactionSave) REGION_PASS("tr-accept", ::llvm::sandboxir::TransactionAlwaysAccept) REGION_PASS("tr-accept-or-revert", ::llvm::sandboxir::TransactionAcceptOrRevert) diff --git a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerPassBuilder.cpp b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerPassBuilder.cpp index 013ccf6..5918cfd 100644 --- a/llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerPassBuilder.cpp +++ b/llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizerPassBuilder.cpp @@ -3,6 +3,7 @@ #include "llvm/Transforms/Vectorize/SandboxVectorizer/Passes/BottomUpVec.h" #include "llvm/Transforms/Vectorize/SandboxVectorizer/Passes/NullPass.h" #include "llvm/Transforms/Vectorize/SandboxVectorizer/Passes/PrintInstructionCount.h" +#include "llvm/Transforms/Vectorize/SandboxVectorizer/Passes/PrintRegion.h" #include "llvm/Transforms/Vectorize/SandboxVectorizer/Passes/RegionsFromBBs.h" #include "llvm/Transforms/Vectorize/SandboxVectorizer/Passes/RegionsFromMetadata.h" #include "llvm/Transforms/Vectorize/SandboxVectorizer/Passes/SeedCollection.h" |