[llvm] [llvm][TableGen] Add a README to the main TableGen folder (PR #69943)

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 25 01:21:50 PDT 2023


================
@@ -0,0 +1,54 @@
+# LLVM TableGen
+
+The purpose of TableGen is to generate complex output files based on information
+from source files that are significantly easier to code than the output files would be, and also easier to maintain and modify over time.
+
+The information is coded in a declarative style involving classes and records,
+which are then processed by TableGen.
+
+```
+class Hello <string _msg> {
+	string msg = !strconcat("Hello ", _msg);
----------------
DavidSpickett wrote:

I wrote it in Compiler Explorer where <tab> is an actual tab, llvm-tblgen outputs 2 space tabs I presume. I've fixed it.

https://github.com/llvm/llvm-project/pull/69943


More information about the llvm-commits mailing list