summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-05-06 22:06:56 +0000
committerTobias Grosser <tobias@grosser.es>2014-05-06 22:06:56 +0000
commitcfc57bb6e37ba0234c78df78ad3d0f6650cebf49 (patch)
tree95b1bb0abd4305550509c47a4bc087fe8f9f0b7d /llvm/lib/CodeGen/MachineFunction.cpp
parent40e9842854430ff34b0b687cbb94e9f4a044588a (diff)
downloadbcm5719-llvm-cfc57bb6e37ba0234c78df78ad3d0f6650cebf49.tar.gz
bcm5719-llvm-cfc57bb6e37ba0234c78df78ad3d0f6650cebf49.zip
tblgen: Modularize the diagnostic emitter
Replace a large monolitic function, with per-table functions which all nicely fit on my screen. I also added documentation to each function that describes what kind of tables are generated and which information is contained and switched to range based for loops. Finally, I run clang-format over the moved code. I spent a significant amount of time to understand this code when reasoning about possible extensions to the diagnostic interface to support 'remark' diagnostics. This change will definitely help such an implementation, but already by itself it will save other people a lot of time when trying to understand this functionality. Even though the patch touches the full function, it is mostly mechanical. No functional change intended. The generated tblgen files are identical. llvm-svn: 208136
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud