Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: src/IceGlobalContext.h

Issue 737513008: Subzero: Simplify the constant pools. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Better fix for the int8/uint8 tests Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.h
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
index 43f65ad8fe8a747cfddb85b2a0dd7faac3f59e18..eeed6afe726185d08a65cb03c80bf8d73086d611 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -113,14 +113,17 @@ public:
// Manage Constants.
// getConstant*() functions are not const because they might add
// something to the constant pool.
- Constant *getConstantInt32(Type Ty, uint32_t ConstantInt32);
- Constant *getConstantInt64(Type Ty, uint64_t ConstantInt64);
+ Constant *getConstantInt(Type Ty, int64_t Value);
+ Constant *getConstantInt1(int8_t ConstantInt1);
+ Constant *getConstantInt8(int8_t ConstantInt8);
+ Constant *getConstantInt16(int16_t ConstantInt16);
+ Constant *getConstantInt32(int32_t ConstantInt32);
+ Constant *getConstantInt64(int64_t ConstantInt64);
Constant *getConstantFloat(float Value);
Constant *getConstantDouble(double Value);
// Returns a symbolic constant.
- Constant *getConstantSym(Type Ty, RelocOffsetT Offset,
- const IceString &Name = "",
- bool SuppressMangling = false);
+ Constant *getConstantSym(RelocOffsetT Offset, const IceString &Name,
+ bool SuppressMangling);
// Returns an undef.
Constant *getConstantUndef(Type Ty);
// Returns a zero value.
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698