File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
mlir/lib/Dialect/LLVMIR/IR Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1313
1414#include " mlir/Dialect/LLVMIR/BasicPtxBuilderInterface.h"
1515
16+ #include " llvm/Support/DebugLog.h"
17+
1618#define DEBUG_TYPE " ptx-builder"
17- #define DBGS () (llvm::dbgs() << " [" DEBUG_TYPE " ]: " )
18- #define DBGSNL () (llvm::dbgs() << " \n " )
1919
2020// ===----------------------------------------------------------------------===//
2121// BasicPtxBuilderInterface
@@ -60,7 +60,7 @@ static char getRegisterType(Value v) {
6060}
6161
6262void PtxBuilder::insertValue (Value v, PTXRegisterMod itype) {
63- LLVM_DEBUG ( DBGS ( ) << v << " \t Modifier : " << &itype << " \n " ) ;
63+ LDBG ( ) << v << " \t Modifier : " << &itype;
6464 auto getModifier = [&]() -> const char * {
6565 if (itype == PTXRegisterMod::ReadWrite) {
6666 assert (false && " Read-Write modifier is not supported. Try setting the "
@@ -167,7 +167,7 @@ LLVM::InlineAsmOp PtxBuilder::build() {
167167
168168void PtxBuilder::buildAndReplaceOp () {
169169 LLVM::InlineAsmOp inlineAsmOp = build ();
170- LLVM_DEBUG ( DBGS ( ) << " \n Generated PTX \n\t " << inlineAsmOp << " \n " ) ;
170+ LDBG ( ) << " \n Generated PTX \n\t " << inlineAsmOp;
171171
172172 // Case 1: no result
173173 if (inlineAsmOp->getNumResults () == 0 ) {
You can’t perform that action at this time.
0 commit comments