Skip to content

Commit

Permalink
Unify Intel LLVM optimizations under lib/Target/LLVMIR (#2900)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbaden authored Dec 6, 2024
1 parent 963ba2b commit daa8c28
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bin/triton-llvm-opt.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// Trimmed down clone of llvm opt to be able to test triton custom llvm ir
/// passes.
#include "lib/Target/LLVMIR/LLVMPasses.h"
#include "third_party/intel/lib/LLVMIR/LLVMPasses.h"
#include "third_party/intel/lib/Target/LLVMIR/LLVMPasses.h"
#include "llvm/CodeGen/CommandFlags.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
Expand Down
1 change: 0 additions & 1 deletion third_party/intel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ add_triton_plugin(TritonXPU

LINK_LIBS
MLIRGPUToLLVMSPV
PostProcessLLVMIR
TritonGENToLLVM
TritonGENToLLVMIRTranslation
TritonIntelGPUToLLVM
Expand Down
1 change: 0 additions & 1 deletion third_party/intel/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
add_subdirectory(Analysis)
add_subdirectory(Dialect)
add_subdirectory(GPUToTritonGEN)
add_subdirectory(LLVMIR)
add_subdirectory(Target)
add_subdirectory(TritonAnnotateModule)
add_subdirectory(TritonGENToLLVM)
Expand Down
6 changes: 0 additions & 6 deletions third_party/intel/lib/LLVMIR/CMakeLists.txt

This file was deleted.

6 changes: 5 additions & 1 deletion third_party/intel/lib/Target/LLVMIR/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
add_subdirectory(Dialect)

add_mlir_translation_library(PostProcessLLVMIR
add_triton_library(TritonIntelLLVMIR
PostProcess.cpp
SLPVectorizer.cpp
LLVMIRFreezeMaskedDivRem.cpp

DEPENDS
LLVMIRIncGen
)
File renamed without changes.
2 changes: 1 addition & 1 deletion third_party/intel/triton_xpu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "intel/include/TritonAnnotateModule/Passes.h"
#include "intel/include/TritonIntelGPUToLLVM/Passes.h"
#include "intel/include/TritonToTritonGPUWarp/Passes.h"
#include "intel/lib/LLVMIR/LLVMPasses.h"
#include "intel/lib/Target/LLVMIR/LLVMPasses.h"

#include "intel/include/Target/SPIRV/SPIRVTranslation.h"
#include "triton/Tools/Sys/GetEnv.hpp"
Expand Down

0 comments on commit daa8c28

Please sign in to comment.