Chromium Code Reviews| Index: src/IceGlobalContext.h |
| diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h |
| index b67a232fc658770fb49b580f99add84c23812346..01a102a21df925ecef38d73197d16fcf9f1601b0 100644 |
| --- a/src/IceGlobalContext.h |
| +++ b/src/IceGlobalContext.h |
| @@ -85,10 +85,17 @@ public: |
| Constant *getConstantUndef(Type Ty); |
| // Returns a zero value. |
| Constant *getConstantZero(Type Ty); |
| + |
| + // Adds the given constant to the list of pooled immediates. |
| + void addConstantPooledImmediate(IceString Name, Constant *Immediate); |
|
Jim Stichnoth
2014/08/13 23:30:25
Use const IceString & here and all the way up.
Al
wala
2014/08/16 00:07:12
const IceString &: Done.
const Constant *: Doesn'
|
| + |
| // getConstantPool() returns a copy of the constant pool for |
| // constants of a given type. |
| ConstantList getConstantPool(Type Ty) const; |
| + // getImmediatePool() returns the list of pooled immediates. |
| + ConstantList getImmediatePool() const; |
| + |
| const ClFlags &getFlags() const { return Flags; } |
| // Allocate data of type T using the global allocator. |