See pliant computing mechanism for a general introduction on meta-programming The Pliant optimizer and code generator stands in optimize.c which is documented.
If you want to dig in the code generator, just start by running:
pliant debug 0 module /pliant/sample/code_generator.pli
This is a sample line extracted from the listing:
2048: cast_uInt_Int c6 a7 <= 768 (uInt Int /pliant/language/type/number/int.pli (internals) 43 1)
2048:
cast_uInt_Int c6 a7
<= 768
uInt Int /pliant/language/type/number/int.pli (internals) 43 1