[llvm-commits] [PATCH] TableGen backend support to express relations between instruction

Jyotsna Verma jverma at codeaurora.org
Wed Oct 24 09:49:39 PDT 2012


Hello Jakob,

Can you please review/commit my TableGen patch? It takes care of all your
comments.

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


> -----Original Message-----
> From: Jyotsna Verma [mailto:jverma at codeaurora.org]
> Sent: Monday, October 22, 2012 2:49 PM
> To: 'Jakob Stoklund Olesen'
> Cc: 'Sean Silva'; 'llvm-commits at cs.uiuc.edu'
> Subject: RE: [llvm-commits] [PATCH] TableGen backend support to express
> relations between instruction
> 
> Hello Jakob,
> 
> This patch addresses all your comments. Please let me know if it's good to
> commit.
> 
> Thanks,
> Jyotsna
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> hosted by The Linux Foundation
> 
> 
> > -----Original Message-----
> > From: Jakob Stoklund Olesen [mailto:stoklund at 2pi.dk]
> > Sent: Friday, October 19, 2012 7:03 PM
> > To: Jyotsna Verma
> > Cc: 'Sean Silva'; llvm-commits at cs.uiuc.edu
> > Subject: Re: [llvm-commits] [PATCH] TableGen backend support to
> > express relations between instruction
> >
> >
> > On Oct 19, 2012, at 9:32 AM, Jyotsna Verma <jverma at codeaurora.org>
> > wrote:
> >
> > > <0001-Add-TableGen-support-to-create-relationship-maps-bet.patch>
> >
> > --- a/utils/TableGen/TableGen.cpp
> > +++ b/utils/TableGen/TableGen.cpp
> > @@ -102,6 +102,7 @@ bool LLVMTableGenMain(raw_ostream &OS,
> > RecordKeeper &Records) {
> >      break;
> >    case GenInstrInfo:
> >      EmitInstrInfo(Records, OS);
> > +    EmitMapTable(Records, OS);
> >      break;
> >    case GenCallingConv:
> >      EmitCallingConv(Records, OS);
> >
> > Please add this call inside EmitInstrInfo.
> >
> > +  OS << "uint16_t "<<InstrMapDesc.getName();  // Number of columns in
> > + the table are NumCol+1 because key instructions are  // emitted as
> > + first column.
> > +  OS << "Table[]["<< NumCol+1 << "] = {\n";
> >
> > Const tables, please.
> >
> > +  OS << "int16_t "<< InstrMapDesc.getName() << "(uint16_t Opcode";
> >
> > Opcodes are in the range 0-64K. They  won't fit in an int16_t.
> >
> > /jakob





More information about the llvm-commits mailing list