[PATCH] R600/SI: Add getInstrInfo helper
Eric Christopher
echristo at gmail.com
Wed Aug 6 07:37:12 PDT 2014
This could also be written as
getTargetMachine().getSubtarget<R600Subtarget>().getInstrInfo() and
then it's shorter but still leaves the full line. It's going to keep
changing for a bit so a helper function might be a bit premature.
-eric
On Tue, Aug 5, 2014 at 6:42 PM, Matt Arsenault
<Matthew.Arsenault at amd.com> wrote:
> Having static_cast<const SIInstrInfo *>(getTargetMachine().getSubtargetImpl()->getInstrInfo()) littered everywhere is horrible, so add a wrapper for it.
>
> http://reviews.llvm.org/D4802
>
> Files:
> lib/Target/R600/SIISelLowering.cpp
> lib/Target/R600/SIISelLowering.h
More information about the llvm-commits
mailing list