[llvm] r242186 - [Hexagon] Generate instructions for operations on predicate registers

Hal Finkel hfinkel at anl.gov
Tue Jul 14 13:52:41 PDT 2015


----- Original Message -----
> From: "Krzysztof Parzyszek" <kparzysz at codeaurora.org>
> To: "Hal Finkel" <hfinkel at anl.gov>
> Cc: llvm-commits at cs.uiuc.edu
> Sent: Tuesday, July 14, 2015 3:37:31 PM
> Subject: Re: [llvm] r242186 - [Hexagon] Generate instructions for operations on	predicate registers
> 
> On 7/14/2015 3:32 PM, Hal Finkel wrote:
> >
> > This is breaking my Clang -Werror build:
> >
> > /src/llvm/lib/Target/Hexagon/HexagonGenPredicate.cpp:57:16: error:
> > unused function 'operator<<' [-Werror,-Wunused-function]
> >    raw_ostream &operator<< (raw_ostream &OS, const PrintRegister
> >    &PR) {
> >                 ^
> > 1 error generated.
> >
> >   -Hal
> 
> 
> Checking...

And, unfortunately, fixing this problem for Clang in the obvious way then breaks my GCC 4.8.2 build:

/src/llvm/lib/Target/Hexagon/HexagonGenPredicate.cpp: In member function ‘{anonymous}::Register {anonymous}::HexagonGenPredicate::getPredRegFor(const {anonymous}::Register&)’:
/src/llvm/lib/Target/Hexagon/HexagonGenPredicate.cpp:233:36: error: no match for ‘operator<<’ (operand types are ‘llvm::raw_ostream’ and ‘{anonymous}::PrintRegister’)
   DEBUG(dbgs() << __func__ << ": " << PrintRegister(Reg, *TRI));

Just FYI.

 -Hal

> 
> -Krzysztof
> 
> 
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> hosted by The Linux Foundation
> 

-- 
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory




More information about the llvm-commits mailing list