[llvm-commits] [llvm] r155235 - /llvm/trunk/include/llvm/Target/TargetRegisterInfo.h

Hal Finkel hfinkel at anl.gov
Fri Apr 20 14:01:16 PDT 2012


Andy,

So is the plan to have register pressure sets with names different from
the underlying register classes? Maybe this was explained somewhere
else, but will these names have to be added manually, or will they get
automatically-generated names based on the affected register classes
(or something else)?

 -Hal

On Fri, 20 Apr 2012 20:45:00 -0000
Andrew Trick <atrick at apple.com> wrote:

> Author: atrick
> Date: Fri Apr 20 15:45:00 2012
> New Revision: 155235
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=155235&view=rev
> Log:
> Added TargetRegisterInfo::getRegPressureSetName.
> 
> Modified:
>     llvm/trunk/include/llvm/Target/TargetRegisterInfo.h
> 
> Modified: llvm/trunk/include/llvm/Target/TargetRegisterInfo.h
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetRegisterInfo.h?rev=155235&r1=155234&r2=155235&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/Target/TargetRegisterInfo.h (original)
> +++ llvm/trunk/include/llvm/Target/TargetRegisterInfo.h Fri Apr 20
> 15:45:00 2012 @@ -515,13 +515,16 @@ return 0;
>    }
>  
> -  /// Get the weight in units of pressure for this register class.
> +// Get the weight in units of pressure for this register class.
>    virtual const RegClassWeight &getRegClassWeight(
>      const TargetRegisterClass *RC) const = 0;
>  
>    /// Get the number of dimensions of register pressure.
>    virtual unsigned getNumRegPressureSets() const = 0;
>  
> +  /// Get the name of this register unit pressure set.
> +  virtual const char *getRegPressureSetName(unsigned Idx) const = 0;
> +
>    /// Get the register unit pressure limit for this dimension.
>    /// This limit must be adjusted dynamically for reserved registers.
>    virtual unsigned getRegPressureSetLimit(unsigned Idx) const = 0;
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory



More information about the llvm-commits mailing list