Add a loadInvariant builtin.

Lowers to an invariant load in LLVM; probably useful for SIL too at some point too, but NFC at that level yet.
This commit is contained in:
Joe Groff
2017-03-07 12:09:23 -08:00
parent 4a25d055cf
commit 39ecc53a25
22 changed files with 151 additions and 35 deletions

View File

@@ -54,7 +54,7 @@ const uint16_t VERSION_MAJOR = 0;
/// in source control, you should also update the comment to briefly
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
const uint16_t VERSION_MINOR = 325; // Last change: unchecked_ownership_conver
const uint16_t VERSION_MINOR = 326; // Last change: invariant bit on pointer_to_address
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;