Skip to content

Commit 8f2a288

Browse files
committed
Add fields to LILI struct for future use for FMA generation.
1 parent a202496 commit 8f2a288

File tree

1 file changed

+4
-0
lines changed
  • tools/flang2/flang2exe

1 file changed

+4
-0
lines changed

tools/flang2/flang2exe/cg.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ typedef struct {
303303
short usect; /* the number of (link) uses of this LILI */
304304
short n_deferred_decr_uses; /* the number of calls to 'decr_use()'
305305
* that have been deferred */
306+
short n_fma_uses;
307+
short n_fnma_uses;
306308
unsigned short fdepth; /* floating point expression depth */
307309
unsigned short idepth; /* integer expression depth */
308310
union {
@@ -336,6 +338,8 @@ typedef struct {
336338
unsigned is_deletable_st : 1; /* a store LILI that will be deleted */
337339
unsigned is_rescheduled_st : 1; /* a store LILI that was moved forward*/
338340
unsigned is_stored : 1; /* LILI's result is source of a store */
341+
unsigned is_fma_product : 1; /* [FD]MUL or [FD]NEG( [FD]MUL ) is used
342+
* as the product in an FMA instruction */
339343
unsigned is_fneg : 1; /* [FD]SUB is a subtract from 0.0 */
340344
unsigned is_bprefetch : 1; /* [IK]CJMPZ derived from a BPREFETCH */
341345
unsigned is_opnd_of_uikmv : 1; /* the LILI is an operand of a UIKMV */

0 commit comments

Comments
 (0)