Page MenuHomePhabricator

GlobalISel/IRTranslator resetTargetOptions based on function attributes

Authored by Petar.Avramovic on Fri, Sep 11, 6:34 AM.



Update TargetMachine.Options with function attributes before we start
to generate MIR instructions. This allows access to correct function
attributes via TargetMachine.Options(it used to access attributes of
function that was translated first).
This affects some existing tests with "no-nans-fp-math" attribute.
Follow-up on D87456.

Diff Detail