Initial backend compiler for RSoV
Bug: 30964317
This compiler compiles RenderScript LLVM bitcode into SPIR-V.
This was done by Jakub Kuderski as part of his 2016 summer internship
at Google.
Test: build
Change-Id: I395cdab2b97451b9e0a9b866af2d112ead73ab72
diff --git a/rsov/compiler/ReflectionPass.h b/rsov/compiler/ReflectionPass.h
new file mode 100644
index 0000000..6770eaf
--- /dev/null
+++ b/rsov/compiler/ReflectionPass.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2016, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef RS_SPIRV_REFLECTION_PASS_H
+#define RS_SPIRV_REFLECTION_PASS_H
+
+#include "llvm/ADT/StringRef.h"
+
+#include <iosfwd>
+
+namespace llvm {
+class ModulePass;
+}
+
+namespace bcinfo {
+class MetadataExtractor;
+}
+
+namespace rs2spirv {
+
+llvm::ModulePass *createReflectionPass(std::ostream &OS,
+ bcinfo::MetadataExtractor &ME);
+
+} // namespace rs2spirv
+
+#endif
\ No newline at end of file