diff --git a/.gitignore b/.gitignore
index a40d2f4..082f9d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,8 @@
!.yarn/releases
!.yarn/versions
+mlir_venv
+
# python temps
__pycache__/
diff --git a/src/app/page.js b/src/app/page.js
index 9e89318..6b43532 100644
--- a/src/app/page.js
+++ b/src/app/page.js
@@ -303,42 +303,42 @@ export default function PyTorchTritonExplorer() {
prev.map((w) => (w.id === id ? { ...w, loading: true } : w))
);
- const window = irWindows.find((w) => w.id === id);
- if (!window) return;
+ const irWin = irWindows.find((w) => w.id === id);
+ if (!irWin) return;
const body = {
code,
- ir_type: window.selectedIR,
+ ir_type: irWin.selectedIR,
selected_language: selectedLanguage,
custom_pipeline: [],
- torch_mlir_opt: window.pipeline
+ torch_mlir_opt: irWin.pipeline
.filter((p) => p.tool === "torch-mlir-opt")
.map((p) => p.flags)
.join(" && "),
- mlir_opt: window.pipeline
+ mlir_opt: irWin.pipeline
.filter((p) => p.tool === "mlir-opt")
.map((p) => p.flags)
.join(" && "),
- mlir_translate: window.pipeline
+ mlir_translate: irWin.pipeline
.filter((p) => p.tool === "mlir-translate")
.map((p) => p.flags)
.join(" && "),
- llvm_opt: window.pipeline
+ llvm_opt: irWin.pipeline
.filter((p) => p.tool === "opt")
.map((p) => p.flags)
.join(" && "),
- llc: window.pipeline
+ llc: irWin.pipeline
.filter((p) => p.tool === "llc")
.map((p) => p.flags)
.join(" && "),
- user_tool: window.pipeline
+ user_tool: irWin.pipeline
.filter((p) => p.tool === "user-tool")
.map((p) => p.flags)
.join(" && "),
- dump_after_each_opt: window.dumpAfterEachOpt,
+ dump_after_each_opt: irWin.dumpAfterEachOpt,
};
- const response = await fetch("http://localhost:8000/generate_ir", {
+ const response = await fetch("http://" + window.location.hostname + ":8000/generate_ir", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(body),
@@ -511,9 +511,9 @@ export default function PyTorchTritonExplorer() {
- {irWindows.map((window) => (
+ {irWindows.map((irWin) => (
-
Output {getLabelForIR(window.selectedIR)}
+
Output {getLabelForIR(irWin.selectedIR)}
- {!window.collapsed && (
+ {!irWin.collapsed && (
<>