Expose position invariance.

Used with MSL to determine whether to compile with invariance preserved.
This commit is contained in:
Bill Hollings 2021-01-28 16:13:20 -05:00
parent 84a41cd488
commit 8e03cb60a5

View File

@ -498,6 +498,12 @@ public:
// The most common use here is to check if a buffer is readonly or writeonly.
Bitset get_buffer_block_flags(VariableID id) const;
// Returns whether the position output is invariant
bool is_position_invariant() const
{
return position_invariant;
}
protected:
const uint32_t *stream(const Instruction &instr) const
{