1# RUN: gdb -q -batch -n -iex 'source %mlir_src_root/utils/gdb-scripts/prettyprinters.py' -iex 'source %llvm_src_root/utils/gdb-scripts/prettyprinters.py' -x %s %llvm_tools_dir/check-gdb-mlir-support | FileCheck %s 2# REQUIRES: debug-info 3# REQUIRES: mlir 4 5break main 6run 7 8# CHECK: "foo" 9p Identifier 10 11# CHECK: "FooOp" 12p OperationName 13 14# CHECK: 0x8 15# CHECK: TrailingOpResult 16p Value 17 18# CHECK: impl = 0x0 19p Type 20 21# CHECK: cast<mlir::IndexType> 22p IndexType 23 24# CHECK: cast<mlir::IntegerType> 25# CHECK: width = 3 26# CHECK: Unsigned 27p IntegerType 28 29# CHECK: cast<mlir::Float32Type> 30p FloatType 31 32# CHECK: cast<mlir::MemRefType> 33# CHECK: shapeSize = 2 34# CHECK: shapeElements[0] = 4 35# CHECK: shapeElements[1] = 5 36p MemRefType 37 38# CHECK: cast<mlir::UnrankedMemRefType> 39# CHECK: memorySpace = 6 40p UnrankedMemRefType 41 42# CHECK: cast<mlir::VectorType> 43# CHECK: shapeSize = 2 44# CHECK: shapeElements[0] = 1 45# CHECK: shapeElements[1] = 2 46p VectorType 47 48# CHECK: cast<mlir::TupleType> 49# CHECK: numElements = 2 50# CHECK: elements[0] 51# CHECK: mlir::IndexType 52# CHECK: elements[1] 53# CHECK: mlir::Float32Type 54p TupleType 55 56# CHECK: cast<mlir::UnknownLoc> 57p UnknownLoc 58 59# CHECK: cast<mlir::FileLineColLoc> 60# CHECK: filename = "file" 61# CHECK: line = 7 62# CHECK: column = 8 63p FileLineColLoc 64 65# CHECK: cast<mlir::OpaqueLoc> 66# CHECK: underlyingLocation = 9 67p OpaqueLoc 68 69# CHECK: cast<mlir::NameLoc> 70# CHECK: name = "foo" 71# CHECK: mlir::UnknownLoc 72p NameLoc 73 74# CHECK: cast<mlir::CallSiteLoc> 75# CHECK: callee 76# CHECK: mlir::FileLineColLoc 77# CHECK: caller 78# CHECK: mlir::OpaqueLoc 79p CallSiteLoc 80 81# CHECK: cast<mlir::FusedLoc> 82# CHECK: numLocs = 2 83# CHECK: locs[0] 84# CHECK: mlir::FileLineColLoc 85# CHECK: locs[1] 86# CHECK: mlir::NameLoc 87p FusedLoc 88 89# CHECK: cast<mlir::UnitAttr> 90p UnitAttr 91 92# CHECK: cast<mlir::FloatAttr> 93p FloatAttr 94 95# CHECK: cast<mlir::IntegerAttr> 96p IntegerAttr 97 98# CHECK: cast<mlir::TypeAttr> 99# CHECK: mlir::IndexType 100p TypeAttr 101 102# CHECK: cast<mlir::ArrayAttr> 103# CHECK: llvm::ArrayRef of length 1 104# CHECK: mlir::UnitAttr 105p ArrayAttr 106 107# CHECK: cast<mlir::StringAttr> 108# CHECK: value = "foo" 109p StringAttr 110 111# CHECK: cast<mlir::DenseIntOrFPElementsAttr> 112p ElementsAttr 113