Skip to content

Commit

Permalink
test crash
Browse files Browse the repository at this point in the history
  • Loading branch information
sdasgup3 committed Mar 16, 2024
1 parent dc4bc72 commit 3e8ead5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/c++/stablehlo_add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
#include "llvm/Support/PrettyStackTrace.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/Quant/QuantOps.h"
#include "mlir/IR/BuiltinOps.h"
Expand All @@ -20,6 +21,8 @@ limitations under the License.
#include "stablehlo/dialect/StablehloOps.h"

int main() {
llvm::EnablePrettyStackTrace(); // Enable pretty stack traces

mlir::MLIRContext context;

/** create module **/
Expand Down
2 changes: 2 additions & 0 deletions stablehlo/tools/StablehloOptMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include "llvm/Support/PrettyStackTrace.h"
#include "mlir/Dialect/Tosa/IR/TosaOps.h"
#include "mlir/Dialect/Tosa/Transforms/Passes.h"
#include "mlir/InitAllDialects.h"
Expand All @@ -28,6 +29,7 @@ limitations under the License.
#include "stablehlo/transforms/Passes.h"

int main(int argc, char **argv) {
llvm::EnablePrettyStackTrace(); // Enable pretty stack traces
mlir::registerAllPasses();
mlir::hlo::registerAllTestPasses();
mlir::stablehlo::registerPassPipelines();
Expand Down

0 comments on commit 3e8ead5

Please sign in to comment.