1414#define MLIR_DIALECT_GPU_IR_COMPILATIONINTERFACES_H
1515
1616#include " mlir/IR/Attributes.h"
17- #include " llvm/IR/Module.h"
1817
1918namespace llvm {
2019class IRBuilderBase ;
@@ -53,11 +52,7 @@ class TargetOptions {
5352 StringRef toolkitPath = {}, ArrayRef<std::string> linkFiles = {},
5453 StringRef cmdOptions = {},
5554 CompilationTarget compilationTarget = getDefaultCompilationTarget(),
56- function_ref<SymbolTable *()> getSymbolTableCallback = {},
57- function_ref<void (llvm::Module &)> initialLlvmIRCallback = {},
58- function_ref<void (llvm::Module &)> linkedLlvmIRCallback = {},
59- function_ref<void (llvm::Module &)> optimizedLlvmIRCallback = {},
60- function_ref<void (StringRef)> isaCallback = {});
55+ function_ref<SymbolTable *()> getSymbolTableCallback = {});
6156
6257 // / Returns the typeID.
6358 TypeID getTypeID () const ;
@@ -85,22 +80,6 @@ class TargetOptions {
8580 // / table.
8681 SymbolTable *getSymbolTable () const ;
8782
88- // / Returns the callback invoked with the initial LLVM IR for the device
89- // / module.
90- function_ref<void (llvm::Module &)> getInitialLlvmIRCallback () const ;
91-
92- // / Returns the callback invoked with LLVM IR for the device module
93- // / after linking the device libraries.
94- function_ref<void (llvm::Module &)> getLinkedLlvmIRCallback () const ;
95-
96- // / Returns the callback invoked with LLVM IR for the device module after
97- // / LLVM optimizations but before codegen.
98- function_ref<void (llvm::Module &)> getOptimizedLlvmIRCallback () const ;
99-
100- // / Returns the callback invoked with the target ISA for the device,
101- // / for example PTX assembly.
102- function_ref<void (StringRef)> getISACallback () const ;
103-
10483 // / Returns the default compilation target: `CompilationTarget::Fatbin`.
10584 static CompilationTarget getDefaultCompilationTarget ();
10685
@@ -111,11 +90,7 @@ class TargetOptions {
11190 TypeID typeID, StringRef toolkitPath = {},
11291 ArrayRef<std::string> linkFiles = {}, StringRef cmdOptions = {},
11392 CompilationTarget compilationTarget = getDefaultCompilationTarget(),
114- function_ref<SymbolTable *()> getSymbolTableCallback = {},
115- function_ref<void (llvm::Module &)> initialLlvmIRCallback = {},
116- function_ref<void (llvm::Module &)> linkedLlvmIRCallback = {},
117- function_ref<void (llvm::Module &)> optimizedLlvmIRCallback = {},
118- function_ref<void (StringRef)> isaCallback = {});
93+ function_ref<SymbolTable *()> getSymbolTableCallback = {});
11994
12095 // / Path to the target toolkit.
12196 std::string toolkitPath;
@@ -134,21 +109,6 @@ class TargetOptions {
134109 // / being serialized.
135110 function_ref<SymbolTable *()> getSymbolTableCallback;
136111
137- // / Callback invoked with the initial LLVM IR for the device module.
138- function_ref<void (llvm::Module &)> initialLlvmIRCallback;
139-
140- // / Callback invoked with LLVM IR for the device module after
141- // / linking the device libraries.
142- function_ref<void (llvm::Module &)> linkedLlvmIRCallback;
143-
144- // / Callback invoked with LLVM IR for the device module after
145- // / LLVM optimizations but before codegen.
146- function_ref<void (llvm::Module &)> optimizedLlvmIRCallback;
147-
148- // / Callback invoked with the target ISA for the device,
149- // / for example PTX assembly.
150- function_ref<void (StringRef)> isaCallback;
151-
152112private:
153113 TypeID typeID;
154114};
0 commit comments