Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are *.td files in the LLVM / Clang source?

Tags:

llvm

clang

I'm just getting to know the LLVM / Clang source code structure and I find it hard to figure out what *.td files actually are?

like image 562
georg Avatar asked Nov 11 '14 14:11

georg


1 Answers

*.td files contain TableGen code. TableGen is an interpreted languague to describe "records of domain-specific information". One of its main purposes is generating parts of the llvm / clang C/C++ source code. However it is used for various other purposes as well, see
TableGen Program Reference: http://llvm.org/docs/TableGen/index.html
TableGen Language Reference: http://llvm.org/docs/TableGen/LangRef.html
TableGen Backends: http://llvm.org/docs/TableGen/BackEnds.html

like image 163
georg Avatar answered Sep 22 '22 19:09

georg