@@ -95,7 +95,19 @@ def GpuModuleToBinaryPass
9595 Option<"cmdOptions", "opts", "std::string", [{""}],
9696 "Command line options to pass to the tools.">,
9797 Option<"compilationTarget", "format", "std::string", [{"fatbin"}],
98- "The target representation of the compilation process.">
98+ "The target representation of the compilation process.">,
99+ Option<"initialLlvmIRCallback", "initialLlvmIRCallback",
100+ "llvm::function_ref<void(llvm::Module &)>", "nullptr",
101+ "Callback invoked with the initial LLVM IR for the device module.">,
102+ Option<"linkedLlvmIRCallback", "linkedLlvmIRCallback",
103+ "llvm::function_ref<void(llvm::Module &)>", "nullptr",
104+ "Callback invoked with LLVM IR for the device module after linking the device libraries.">,
105+ Option<"optimizedLlvmIRCallback", "optimizedLlvmIRCallback",
106+ "llvm::function_ref<void(llvm::Module &)>", "nullptr",
107+ "Callback invoked with LLVM IR for the device module after LLVM optimizations but before codegen.">,
108+ Option<"isaCallback", "isaCallback",
109+ "llvm::function_ref<void(llvm::StringRef)>", "nullptr",
110+ "Callback invoked with the target ISA for the device, for example PTX assembly.">
99111 ];
100112}
101113
0 commit comments