These directives are used to save the current assembler options (in the case of ".set push") and restore the previously saved options (in the case of ".set pop").
Contains work done by Matheus Almeida.
Paths
| Differential D4821
[mips] Add assembler support for .set push/pop directive. ClosedPublic Authored by tomatabacu on Aug 7 2014, 2:40 AM.
Details Summary These directives are used to save the current assembler options (in the case of ".set push") and restore the previously saved options (in the case of ".set pop"). Contains work done by Matheus Almeida.
Diff Detail Event Timelinetomatabacu retitled this revision from to [mips] Add assembler support for .set push/pop directive.. tomatabacu updated this object. Comment Actions Changed the CurrentFeatures and InitialFeatures data members of MipsAssemblerOptions from unsigned type to uint64_t (because of r215887).
Comment Actions Replaced the use of std::stack with SmallVector to make it easier to implement the .set mips0 directive (http://reviews.llvm.org/D4957). Comment Actions LGTM with a few nits.
tomatabacu edited edge metadata. Comment ActionsAddressed reviewer's concerns. This revision is now accepted and ready to land.Sep 5 2014, 8:34 AM
Revision Contents
Diff 12620 lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
lib/Target/Mips/MipsTargetStreamer.h
test/MC/Mips/set-push-pop-directives-bad.s
test/MC/Mips/set-push-pop-directives.s
|
The argument should be const.