[PATCH] [RFC][5/17]TILE-Gx: add register information for tilegx

Jiong Wang jiwang at tilera.com
Thu Mar 14 23:42:38 PDT 2013


于 2013/3/11 23:15, Anton Korobeynikov 写道:
>
> ================
> Comment at: lib/Target/Tile/TileRegisterInfo.cpp:56
> @@ +55,3 @@
> +getCalleeSavedRegs(const MachineFunction *MF) const
> +{
> +  return CSR_Tile_SaveList;
> ----------------
> Please follow the Coding Style.
>
> ================
> Comment at: lib/Target/Tile/TileRegisterInfo.td:173
> @@ +172,3 @@
> +  // Return Values and Arguments, caller saved.
> +  R0_32, R1_32, R2_32, R3_32, R4_32, R5_32, R6_32, R7_32, R8_32, R9_32,
> +  // Other caller saved.
> ----------------
> You can simplify these list a lot using sequences. See ARMInstrInfo.td for reference
>
> ================
> Comment at: lib/Target/Tile/TileRegisterInfo.cpp:61
> @@ +60,3 @@
> +const uint32_t*
> +TileRegisterInfo::getCallPreservedMask(CallingConv::ID) const
> +{
> ----------------
> Same here
>
> ================
> Comment at: lib/Target/Tile/TileRegisterInfo.cpp:130
> @@ +129,3 @@
> +
> +  if(Opc == Tile::TileFI) {
> +    DestReg = MI.getOperand(0).getReg();
> ----------------
> Same here. Space after if and so on

all addressed.

1. if( ===> if (

2.
foo ()
{
}
===> foo () {
}

3. use sequence to simplify reg.td

attachment is the updated patch.

---
Regards,
Jiong
>
>
> http://llvm-reviews.chandlerc.com/D515
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D515.1.patch
Type: text/x-patch
Size: 19481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130315/9e3f5e48/attachment.bin>


More information about the llvm-commits mailing list