[llvm-commits] [llvm] r78563 - in /llvm/trunk: include/llvm/CodeGen/ScheduleHazardRecognizer.h include/llvm/Target/TargetInstrItineraries.h lib/CodeGen/CMakeLists.txt lib/CodeGen/ExactHazardRecognizer.cpp lib/CodeGen/ExactHazardRecognizer.h lib/CodeGen/PostRASchedulerList.cpp lib/CodeGen/ScheduleDAGInstrs.cpp lib/CodeGen/SimpleHazardRecognizer.h
Bill Wendling
wendling at apple.com
Mon Aug 10 11:07:18 PDT 2009
Hi David,
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp (added)
> +++ llvm/trunk/lib/CodeGen/ExactHazardRecognizer.cpp Mon Aug 10
> 10:55:25 2009
> @@ -0,0 +1,149 @@
> +//===----- ExactHazardRecognizer.cpp - hazard recognizer --------
> ---------===//
> +//
> +// The LLVM Compiler Infrastructure
> +//
> +// This file is distributed under the University of Illinois Open
> Source
> +// License. See LICENSE.TXT for details.
> +//
> +//
> =
> =
> =
> ----------------------------------------------------------------------=
> ==//
> +//
> +// This implements a a hazard recognizer using the instructions
> itineraries
> +// defined for the current target.
> +//
> +//
> =
> =
> =
> ----------------------------------------------------------------------=
> ==//
> +
> +
> + Scoreboard = new unsigned[ScoreboardDepth];
> + ScoreboardHead = 0;
> +
> + DOUT << "Using exact hazard recognizer: ScoreboardDepth = "
> + << ScoreboardDepth << '\n';
> +}
A general comment, the use of "DOUT" is deprecated. Please use
"DEBUG(errs() << ...); instead.
-bw
More information about the llvm-commits
mailing list