Internally, the pretty-printing now uses a type alias Fmt to represent the operation that converts something to a Doc, with the presence of the Config implicit parameter. This allows standardization of the printing operation declarations as a precursor to making changes that affect all operations.
This also adds an LLVMPretty class so that the generic llvmPP method can be used to perform type-based dispatching to the appropriate pretty-printer. Currently, only the most prominently used instances are defined, but more will be coming in future changes.
Internally, the pretty-printing now uses a type alias
Fmt
to represent the operation that converts something to aDoc
, with the presence of theConfig
implicit parameter. This allows standardization of the printing operation declarations as a precursor to making changes that affect all operations.This also adds an
LLVMPretty
class so that the genericllvmPP
method can be used to perform type-based dispatching to the appropriate pretty-printer. Currently, only the most prominently used instances are defined, but more will be coming in future changes.