Home | History | Annotate | Download | only in llvm

Lines Matching refs:flags

72   /// Flags to specify whether a pass should be enabled.  Passes registered
74 /// or more flags that must be set when constructing the set for the pass to
98 // Flags that must be set
100 // Flags that may not be set.
106 /// Returns the optimisation level from a set of flags.
107 static unsigned OptimizationLevel(unsigned flags) {
108 return flags & OptimizationLevelMask;
110 /// Returns the maximum optimization level for this set of flags
111 static unsigned MaxOptimizationLevel(unsigned flags) {
112 return (flags & MaxOptimizationLevelMask) >> 4;
114 /// Constructs a set of flags from the specified minimum and maximum
123 /// Returns the flags that must be set for this to match
124 static unsigned RequiredFlags(unsigned flags) {
125 return (flags & RequiredFlagMask) >> RequiredFlagShift;
127 /// Returns the flags that must not be set for this to match
128 static unsigned DisallowedFlags(unsigned flags) {
129 return (flags & DisallowedFlagMask) >> DisallowedFlagShift;
131 /// Register a standard pass in the specified set. If flags is non-zero,
132 /// then the pass will only be returned when the specified flags are set.
137 unsigned flags=0, unsigned char *ID=0) {
140 ID ? ID : (unsigned char*)&passName::ID, runBefore, set, flags);
146 unsigned flags=0,
161 unsigned flags=0);