On 08/12/2015 01:32 AM, Richard Earnshaw wrote: > How do we clear the cache, and when? For example, on ARM, switching > between ARM and Thumb state means we need to generate potentially > radically different sequences? We can do such splitting at function > boundaries now.
At present I never clear the cache. Maybe we'll find that's a mistake. For arm vs thumb I would start with just using two different caches. The way the code is structured currently, that would mean two different classes. Which could just be trivial wrappers around a common base class containing the generator code. > Can we generate different sequences for hot/cold code within a single > function? Not without using different caches. > Can we cache sequences with the context (eg use with AND, OR, ADD, etc)? No. At least not without... r~