URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [reg-notes.def] - Rev 710
Go to most recent revision | Compare with Previous | Blame | View Log
/* Register note definitions.Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010Free Software Foundation, Inc.This file is part of GCC.GCC is free software; you can redistribute it and/or modify it underthe terms of the GNU General Public License as published by the FreeSoftware Foundation; either version 3, or (at your option) any laterversion.GCC is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY orFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licensefor more details.You should have received a copy of the GNU General Public Licensealong with GCC; see the file COPYING3. If not see<http://www.gnu.org/licenses/>. *//* This file defines all the codes that may appear on individualEXPR_LIST rtxes in the REG_NOTES chain of an insn. The codes arestored in the mode field of the EXPR_LIST. Source files defineDEF_REG_NOTE appropriately before including this file. *//* Shorthand. */#define REG_NOTE(NAME) DEF_REG_NOTE (REG_##NAME)/* REG_DEP_TRUE is used in scheduler dependencies lists to represent aread-after-write dependency (i.e. a true data dependency). This ishere, not grouped with REG_DEP_ANTI and REG_DEP_OUTPUT, because somepasses use a literal 0 for it. */REG_NOTE (DEP_TRUE)/* The value in REG dies in this insn (i.e., it is not needed pastthis insn). If REG is set in this insn, the REG_DEAD note may,but need not, be omitted. */REG_NOTE (DEAD)/* The REG is autoincremented or autodecremented in this insn. */REG_NOTE (INC)/* Describes the insn as a whole; it says that the insn sets aregister to a constant value or to be equivalent to a memoryaddress. If the register is spilled to the stack then the constantvalue should be substituted for it. The contents of the REG_EQUIVis the constant value or memory address, which may be differentfrom the source of the SET although it has the same value. AREG_EQUIV note may also appear on an insn which copies a registerparameter to a pseudo-register, if there is a memory address whichcould be used to hold that pseudo-register throughout the function. */REG_NOTE (EQUIV)/* Like REG_EQUIV except that the destination is only momentarilyequal to the specified rtx. Therefore, it cannot be used forsubstitution; but it can be used for cse. */REG_NOTE (EQUAL)/* The register is always nonnegative during the containing loop.This is used in branches so that decrement and branch instructionsterminating on zero can be matched. There must be an insn patternin the md file named `decrement_and_branch_until_zero' or else thiswill never be added to any instructions. */REG_NOTE (NONNEG)/* Identifies a register set in this insn and never used. */REG_NOTE (UNUSED)/* REG_CC_SETTER and REG_CC_USER link a pair of insns that set and useCC0, respectively. Normally, these are required to be consecutiveinsns, but we permit putting a cc0-setting insn in the delay slotof a branch as long as only one copy of the insn exists. In thatcase, these notes point from one to the other to allow codegeneration to determine what any require information and toproperly update CC_STATUS. These notes are INSN_LISTs. */REG_NOTE (CC_SETTER)REG_NOTE (CC_USER)/* Points to a CODE_LABEL. Used by JUMP_INSNs to say that the CODE_LABELcontained in the REG_LABEL_TARGET note is a possible jump target ofthis insn. This note is an INSN_LIST. */REG_NOTE (LABEL_TARGET)/* Points to a CODE_LABEL. Used by any insn to say that the CODE_LABELcontained in the REG_LABEL_OPERAND note is used by the insn, but as anoperand, not as a jump target (though it may indirectly be a jumptarget for a later jump insn). This note is an INSN_LIST. */REG_NOTE (LABEL_OPERAND)/* REG_DEP_OUTPUT and REG_DEP_ANTI are used in scheduler dependencies liststo represent write-after-write and write-after-read dependenciesrespectively. */REG_NOTE (DEP_OUTPUT)REG_NOTE (DEP_ANTI)REG_NOTE (DEP_CONTROL)/* REG_BR_PROB is attached to JUMP_INSNs and CALL_INSNs. It has aninteger value. For jumps, it is the probability that this is ataken branch. For calls, it is the probability that this callwon't return. */REG_NOTE (BR_PROB)/* Attached to a call insn; indicates that the call is malloc-like andthat the pointer returned cannot alias anything else. */REG_NOTE (NOALIAS)/* REG_BR_PRED is attached to JUMP_INSNs and CALL_INSNSs. It containsCONCAT of two integer value. First specifies the branch predictorthat added the note, second specifies the predicted hitrate ofbranch in the same format as REG_BR_PROB note uses. */REG_NOTE (BR_PRED)/* Attached to insns that are RTX_FRAME_RELATED_P, but are too complexfor DWARF to interpret what they imply. The attached rtx is usedinstead of intuition. */REG_NOTE (FRAME_RELATED_EXPR)/* Attached to insns that are RTX_FRAME_RELATED_P, but are too complexfor FRAME_RELATED_EXPR intuition. The insn's first pattern must bea SET, and the destination must be the CFA register. The attachedrtx is an expression that defines the CFA. In the simplest case, thertx could be just the stack_pointer_rtx; more common would be a PLUSwith a base register and a constant offset. In the most complicatedcases, this will result in a DW_CFA_def_cfa_expression with the rtxexpression rendered in a dwarf location expression. */REG_NOTE (CFA_DEF_CFA)/* Attached to insns that are RTX_FRAME_RELATED_P, but are too complexfor FRAME_RELATED_EXPR intuition. This note adjusts the expressionfrom which the CFA is computed. The attached rtx defines a new CFAexpression, relative to the old CFA expression. This rtx must be ofthe form (SET new-cfa-reg (PLUS old-cfa-reg const_int)). If the notertx is NULL, we use the first SET of the insn. */REG_NOTE (CFA_ADJUST_CFA)/* Similar to FRAME_RELATED_EXPR, with the additional information thatthis is a save to memory, i.e. will result in DW_CFA_offset or thelike. The pattern or the insn should be a simple store relative tothe CFA. */REG_NOTE (CFA_OFFSET)/* Similar to FRAME_RELATED_EXPR, with the additional information that thisis a save to a register, i.e. will result in DW_CFA_register. The insnor the pattern should be simple reg-reg move. */REG_NOTE (CFA_REGISTER)/* Attached to insns that are RTX_FRAME_RELATED_P, but are too complexfor FRAME_RELATED_EXPR intuition. This is a save to memory, i.e. willresult in a DW_CFA_expression. The pattern or the insn should be astore of a register to an arbitrary (non-validated) memory address. */REG_NOTE (CFA_EXPRESSION)/* Attached to insns that are RTX_FRAME_RELATED_P, with the informationthat this is a restore operation, i.e. will result in DW_CFA_restoreor the like. Either the attached rtx, or the destination of the insn'sfirst pattern is the register to be restored. */REG_NOTE (CFA_RESTORE)/* Attached to insns that are RTX_FRAME_RELATED_P, marks insn that setsvDRAP from DRAP. If vDRAP is a register, vdrap_reg is initalizedto the argument, if it is a MEM, it is ignored. */REG_NOTE (CFA_SET_VDRAP)/* Attached to insns that are RTX_FRAME_RELATED_P, indicating a windowsave operation, i.e. will result in a DW_CFA_GNU_window_save.The argument is ignored. */REG_NOTE (CFA_WINDOW_SAVE)/* Attached to insns that are RTX_FRAME_RELATED_P, marks the insn asrequiring that all queued information should be flushed *before* insn,regardless of what is visible in the rtl. The argument is ignored.This is normally used for a call instruction which is not exposed tothe rest of the compiler as a CALL_INSN. */REG_NOTE (CFA_FLUSH_QUEUE)/* Indicates that REG holds the exception context for the function.This context is shared by inline functions, so the code to acquirethe real exception context is delayed until after inlining. */REG_NOTE (EH_CONTEXT)/* Indicates what exception region an INSN belongs in. This is usedto indicate what region to which a call may throw. REGION 0indicates that a call cannot throw at all. REGION -1 indicatesthat it cannot throw, nor will it execute a non-local goto. */REG_NOTE (EH_REGION)/* Used by haifa-sched to save NOTE_INSN notes across scheduling. */REG_NOTE (SAVE_NOTE)/* Indicates that a call does not return. */REG_NOTE (NORETURN)/* Indicates that an indirect jump is a non-local goto instead of acomputed goto. */REG_NOTE (NON_LOCAL_GOTO)/* Indicates that a jump crosses between hot and cold sections in a(partitioned) assembly or .o file, and therefore should not bereduced to a simpler jump by optimizations. */REG_NOTE (CROSSING_JUMP)/* This kind of note is generated at each to `setjmp', and similarfunctions that can return twice. */REG_NOTE (SETJMP)/* This kind of note is generated at each transactional memorybuiltin, to indicate we need to generate transaction restartedges for this insn. */REG_NOTE (TM)/* Indicates the cumulative offset of the stack pointer accountingfor pushed arguments. This will only be generated whenACCUMULATE_OUTGOING_ARGS is false. */REG_NOTE (ARGS_SIZE)
Go to most recent revision | Compare with Previous | Blame | View Log
