/* Generate a new REG rtx. Make sure ORIGINAL_REGNO is set properly, and don't attempt to share with the various global pieces of rtl (such as frame_pointer_rtx). */ rtx gen_raw_REG (machine_mode mode, unsigned int regno) { rtx x = rtx_alloc (REG MEM_STAT_INFO); set_mode_and_regno (x, mode, regno); REG_ATTRS (x) = NULL; ORIGINAL_REGNO (x) = regno; return x; }
(x)->u.reg.regno = regno; (x)->u.reg.nregs = 1; //ハードウェアレジスタの場合は 1 以外の値になることもある (x)->u.reg.attrs = NULL; (x)->u2.original_regno = regno;