]> granicus.if.org Git - llvm/commit
Cleanup dump() functions.
authorMatthias Braun <matze@braunis.de>
Sat, 28 Jan 2017 02:02:38 +0000 (02:02 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 28 Jan 2017 02:02:38 +0000 (02:02 +0000)
commit88d207542b618ca6054b24491ddd67f8ca397540
treef62acd2207c3b8c726f2b30d9501355613c092c3
parent92cf58ee368511a9ef8a97cd7ff2702effcc745c
Cleanup dump() functions.

We had various variants of defining dump() functions in LLVM. Normalize
them (this should just consistently implement the things discussed in
http://lists.llvm.org/pipermail/cfe-dev/2014-January/034323.html

For reference:
- Public headers should just declare the dump() method but not use
  LLVM_DUMP_METHOD or #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
- The definition of a dump method should look like this:
  #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
  LLVM_DUMP_METHOD void MyClass::dump() {
    // print stuff to dbgs()...
  }
  #endif

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293359 91177308-0d34-0410-b5e6-96231b3b80d8
94 files changed:
include/llvm/CodeGen/MachineOperand.h
include/llvm/CodeGen/RegisterPressure.h
include/llvm/Support/Compiler.h
include/llvm/Support/GCOV.h
include/llvm/TableGen/Record.h
lib/Analysis/BlockFrequencyInfoImpl.cpp
lib/Analysis/CallGraph.cpp
lib/Analysis/DependenceAnalysis.cpp
lib/Analysis/LazyCallGraph.cpp
lib/Analysis/ScalarEvolution.cpp
lib/Bitcode/Writer/ValueEnumerator.cpp
lib/CodeGen/AsmPrinter/DIE.cpp
lib/CodeGen/BranchRelaxation.cpp
lib/CodeGen/GlobalISel/RegBankSelect.cpp
lib/CodeGen/GlobalISel/RegisterBank.cpp
lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
lib/CodeGen/LexicalScopes.cpp
lib/CodeGen/LiveDebugVariables.cpp
lib/CodeGen/LiveInterval.cpp
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/LivePhysRegs.cpp
lib/CodeGen/LiveVariables.cpp
lib/CodeGen/MachineFunction.cpp
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/MachinePipeliner.cpp
lib/CodeGen/MachineRegisterInfo.cpp
lib/CodeGen/MachineScheduler.cpp
lib/CodeGen/PostRASchedulerList.cpp
lib/CodeGen/RegAllocPBQP.cpp
lib/CodeGen/RegisterPressure.cpp
lib/CodeGen/SafeStackColoring.cpp
lib/CodeGen/ScheduleDAG.cpp
lib/CodeGen/ScheduleDAGInstrs.cpp
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/CodeGen/StackColoring.cpp
lib/CodeGen/TargetRegisterInfo.cpp
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
lib/IR/AsmWriter.cpp
lib/IR/Attributes.cpp
lib/IR/ConstantRange.cpp
lib/IR/Core.cpp
lib/IR/DebugLoc.cpp
lib/IR/GCOV.cpp
lib/IR/Pass.cpp
lib/IR/ValueSymbolTable.cpp
lib/MC/MCExpr.cpp
lib/MC/MCFragment.cpp
lib/MC/MCInst.cpp
lib/MC/MCLabel.cpp
lib/MC/MCParser/MCAsmParser.cpp
lib/MC/MCSection.cpp
lib/MC/MCSymbol.cpp
lib/MC/MCValue.cpp
lib/MC/SubtargetFeature.cpp
lib/Option/Arg.cpp
lib/Option/ArgList.cpp
lib/Option/Option.cpp
lib/ProfileData/SampleProf.cpp
lib/Support/APFloat.cpp
lib/Support/APInt.cpp
lib/Support/BranchProbability.cpp
lib/Support/Twine.cpp
lib/TableGen/Record.cpp
lib/TableGen/TGParser.cpp
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/ARM/ARMConstantIslandPass.cpp
lib/Target/ARM/ARMConstantPoolValue.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/BPF/BPFISelDAGToDAG.cpp
lib/Target/BPF/BPFMCInstLower.cpp
lib/Target/Hexagon/HexagonMCInstLower.cpp
lib/Target/Hexagon/HexagonSplitDouble.cpp
lib/Target/Lanai/LanaiMCInstLower.cpp
lib/Target/MSP430/MSP430MCInstLower.cpp
lib/Target/Mips/MipsConstantIslandPass.cpp
lib/Target/PowerPC/PPCMCInstLower.cpp
lib/Target/PowerPC/PPCVSXSwapRemoval.cpp
lib/Target/X86/X86MCInstLower.cpp
lib/Transforms/Coroutines/CoroFrame.cpp
lib/Transforms/Scalar/GVN.cpp
lib/Transforms/Scalar/LoopStrengthReduce.cpp
lib/Transforms/Utils/MemorySSA.cpp
lib/Transforms/Utils/ModuleUtils.cpp
tools/llvm-cov/gcov.cpp
tools/llvm-diff/DiffConsumer.cpp
tools/opt/GraphPrinters.cpp
utils/TableGen/CallingConvEmitter.cpp
utils/TableGen/CodeGenDAGPatterns.cpp