[MLIR] Update MLIR tutorial to use LDBG() macro (#150763)
This commit is contained in:
parent
865dd278a9
commit
03dc2a41f3
@ -445,7 +445,7 @@ When processing an operation like described, we query if it registered the
|
||||
|
||||
```c++
|
||||
// Ask the operation to infer its output shapes.
|
||||
LLVM_DEBUG(llvm::dbgs() << "Inferring shape for: " << *op << "\n");
|
||||
LDBG() << "Inferring shape for: " << *op;
|
||||
|
||||
/// We check if an operation has a particular interface by casting.
|
||||
if (ShapeInference shapeOp = dyn_cast<ShapeInference>(op)) {
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/DebugLog.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <memory>
|
||||
|
||||
@ -81,7 +81,7 @@ struct ShapeInferencePass
|
||||
opWorklist.erase(op);
|
||||
|
||||
// Ask the operation to infer its output shapes.
|
||||
LLVM_DEBUG(llvm::dbgs() << "Inferring shape for: " << *op << "\n");
|
||||
LDBG() << "Inferring shape for: " << *op;
|
||||
if (auto shapeOp = dyn_cast<ShapeInference>(op)) {
|
||||
shapeOp.inferShapes();
|
||||
} else {
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/DebugLog.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <memory>
|
||||
|
||||
@ -81,7 +81,7 @@ struct ShapeInferencePass
|
||||
opWorklist.erase(op);
|
||||
|
||||
// Ask the operation to infer its output shapes.
|
||||
LLVM_DEBUG(llvm::dbgs() << "Inferring shape for: " << *op << "\n");
|
||||
LDBG() << "Inferring shape for: " << *op;
|
||||
if (auto shapeOp = dyn_cast<ShapeInference>(op)) {
|
||||
shapeOp.inferShapes();
|
||||
} else {
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/DebugLog.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <memory>
|
||||
|
||||
@ -81,7 +81,7 @@ struct ShapeInferencePass
|
||||
opWorklist.erase(op);
|
||||
|
||||
// Ask the operation to infer its output shapes.
|
||||
LLVM_DEBUG(llvm::dbgs() << "Inferring shape for: " << *op << "\n");
|
||||
LDBG() << "Inferring shape for: " << *op;
|
||||
if (auto shapeOp = dyn_cast<ShapeInference>(op)) {
|
||||
shapeOp.inferShapes();
|
||||
} else {
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/DebugLog.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <memory>
|
||||
|
||||
@ -81,7 +81,7 @@ struct ShapeInferencePass
|
||||
opWorklist.erase(op);
|
||||
|
||||
// Ask the operation to infer its output shapes.
|
||||
LLVM_DEBUG(llvm::dbgs() << "Inferring shape for: " << *op << "\n");
|
||||
LDBG() << "Inferring shape for: " << *op;
|
||||
if (auto shapeOp = dyn_cast<ShapeInference>(op)) {
|
||||
shapeOp.inferShapes();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user