summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/llvm/loweringpass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/llvm/loweringpass.cpp')
-rw-r--r--src/mesa/pipe/llvm/loweringpass.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/pipe/llvm/loweringpass.cpp b/src/mesa/pipe/llvm/loweringpass.cpp
new file mode 100644
index 00000000000..556dbec3661
--- /dev/null
+++ b/src/mesa/pipe/llvm/loweringpass.cpp
@@ -0,0 +1,17 @@
+#include "loweringpass.h"
+
+using namespace llvm;
+
+char LoweringPass::ID = 0;
+RegisterPass<LoweringPass> X("lowering", "Lowering Pass");
+
+LoweringPass::LoweringPass()
+ : ModulePass((intptr_t)&ID)
+{
+}
+
+bool LoweringPass::runOnModule(Module &m)
+{
+ llvm::cerr << "Hello: " << m.getModuleIdentifier() << "\n";
+ return false;
+}