Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/IceInstARM32.h

Issue 1343843003: Refactor all instances of `typedef y x` to the C++11 `using x = y` syntax. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceInst.h ('k') | src/IceInstX86Base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- C++ -*-===// 1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 InstARM32CmpLike(Cfg *Func, Variable *Src0, Operand *Src1, 752 InstARM32CmpLike(Cfg *Func, Variable *Src0, Operand *Src1,
753 CondARM32::Cond Predicate) 753 CondARM32::Cond Predicate)
754 : InstARM32Pred(Func, K, 2, nullptr, Predicate) { 754 : InstARM32Pred(Func, K, 2, nullptr, Predicate) {
755 addSource(Src0); 755 addSource(Src0);
756 addSource(Src1); 756 addSource(Src1);
757 } 757 }
758 758
759 static const char *Opcode; 759 static const char *Opcode;
760 }; 760 };
761 761
762 typedef InstARM32ThreeAddrGPR<InstARM32::Adc> InstARM32Adc; 762 using InstARM32Adc = InstARM32ThreeAddrGPR<InstARM32::Adc>;
763 typedef InstARM32ThreeAddrGPR<InstARM32::Add> InstARM32Add; 763 using InstARM32Add = InstARM32ThreeAddrGPR<InstARM32::Add>;
764 typedef InstARM32ThreeAddrGPR<InstARM32::And> InstARM32And; 764 using InstARM32And = InstARM32ThreeAddrGPR<InstARM32::And>;
765 typedef InstARM32ThreeAddrGPR<InstARM32::Asr> InstARM32Asr; 765 using InstARM32Asr = InstARM32ThreeAddrGPR<InstARM32::Asr>;
766 typedef InstARM32ThreeAddrGPR<InstARM32::Bic> InstARM32Bic; 766 using InstARM32Bic = InstARM32ThreeAddrGPR<InstARM32::Bic>;
767 typedef InstARM32ThreeAddrGPR<InstARM32::Eor> InstARM32Eor; 767 using InstARM32Eor = InstARM32ThreeAddrGPR<InstARM32::Eor>;
768 typedef InstARM32ThreeAddrGPR<InstARM32::Lsl> InstARM32Lsl; 768 using InstARM32Lsl = InstARM32ThreeAddrGPR<InstARM32::Lsl>;
769 typedef InstARM32ThreeAddrGPR<InstARM32::Lsr> InstARM32Lsr; 769 using InstARM32Lsr = InstARM32ThreeAddrGPR<InstARM32::Lsr>;
770 typedef InstARM32ThreeAddrGPR<InstARM32::Mul> InstARM32Mul; 770 using InstARM32Mul = InstARM32ThreeAddrGPR<InstARM32::Mul>;
771 typedef InstARM32ThreeAddrGPR<InstARM32::Orr> InstARM32Orr; 771 using InstARM32Orr = InstARM32ThreeAddrGPR<InstARM32::Orr>;
772 typedef InstARM32ThreeAddrGPR<InstARM32::Rsb> InstARM32Rsb; 772 using InstARM32Rsb = InstARM32ThreeAddrGPR<InstARM32::Rsb>;
773 typedef InstARM32ThreeAddrGPR<InstARM32::Sbc> InstARM32Sbc; 773 using InstARM32Sbc = InstARM32ThreeAddrGPR<InstARM32::Sbc>;
774 typedef InstARM32ThreeAddrGPR<InstARM32::Sdiv> InstARM32Sdiv; 774 using InstARM32Sdiv = InstARM32ThreeAddrGPR<InstARM32::Sdiv>;
775 typedef InstARM32ThreeAddrGPR<InstARM32::Sub> InstARM32Sub; 775 using InstARM32Sub = InstARM32ThreeAddrGPR<InstARM32::Sub>;
776 typedef InstARM32ThreeAddrGPR<InstARM32::Udiv> InstARM32Udiv; 776 using InstARM32Udiv = InstARM32ThreeAddrGPR<InstARM32::Udiv>;
777 typedef InstARM32ThreeAddrFP<InstARM32::Vadd> InstARM32Vadd; 777 using InstARM32Vadd = InstARM32ThreeAddrFP<InstARM32::Vadd>;
778 typedef InstARM32ThreeAddrFP<InstARM32::Vdiv> InstARM32Vdiv; 778 using InstARM32Vdiv = InstARM32ThreeAddrFP<InstARM32::Vdiv>;
779 typedef InstARM32ThreeAddrFP<InstARM32::Vmul> InstARM32Vmul; 779 using InstARM32Vmul = InstARM32ThreeAddrFP<InstARM32::Vmul>;
780 typedef InstARM32ThreeAddrFP<InstARM32::Vsub> InstARM32Vsub; 780 using InstARM32Vsub = InstARM32ThreeAddrFP<InstARM32::Vsub>;
781 typedef InstARM32Movlike<InstARM32::Ldr> InstARM32Ldr; 781 using InstARM32Ldr = InstARM32Movlike<InstARM32::Ldr>;
782 /// Move instruction (variable <- flex). This is more of a pseudo-inst. 782 /// Move instruction (variable <- flex). This is more of a pseudo-inst.
783 /// If var is a register, then we use "mov". If var is stack, then we use 783 /// If var is a register, then we use "mov". If var is stack, then we use
784 /// "str" to store to the stack. 784 /// "str" to store to the stack.
785 typedef InstARM32Movlike<InstARM32::Mov> InstARM32Mov; 785 using InstARM32Mov = InstARM32Movlike<InstARM32::Mov>;
786 /// Represents various vector mov instruction forms (simple single source, 786 /// Represents various vector mov instruction forms (simple single source,
787 /// single dest forms only, not the 2 GPR <-> 1 D reg forms, etc.). 787 /// single dest forms only, not the 2 GPR <-> 1 D reg forms, etc.).
788 typedef InstARM32Movlike<InstARM32::Vmov> InstARM32Vmov; 788 using InstARM32Vmov = InstARM32Movlike<InstARM32::Vmov>;
789 typedef InstARM32Movlike<InstARM32::Vldr> InstARM32Vldr; 789 using InstARM32Vldr = InstARM32Movlike<InstARM32::Vldr>;
790 /// MovT leaves the bottom bits alone so dest is also a source. 790 /// MovT leaves the bottom bits alone so dest is also a source.
791 /// This helps indicate that a previous MovW setting dest is not dead code. 791 /// This helps indicate that a previous MovW setting dest is not dead code.
792 typedef InstARM32TwoAddrGPR<InstARM32::Movt> InstARM32Movt; 792 using InstARM32Movt = InstARM32TwoAddrGPR<InstARM32::Movt>;
793 typedef InstARM32UnaryopGPR<InstARM32::Movw, false> InstARM32Movw; 793 using InstARM32Movw = InstARM32UnaryopGPR<InstARM32::Movw, false>;
794 typedef InstARM32UnaryopGPR<InstARM32::Clz, false> InstARM32Clz; 794 using InstARM32Clz = InstARM32UnaryopGPR<InstARM32::Clz, false>;
795 typedef InstARM32UnaryopGPR<InstARM32::Mvn, false> InstARM32Mvn; 795 using InstARM32Mvn = InstARM32UnaryopGPR<InstARM32::Mvn, false>;
796 typedef InstARM32UnaryopGPR<InstARM32::Rbit, false> InstARM32Rbit; 796 using InstARM32Rbit = InstARM32UnaryopGPR<InstARM32::Rbit, false>;
797 typedef InstARM32UnaryopGPR<InstARM32::Rev, false> InstARM32Rev; 797 using InstARM32Rev = InstARM32UnaryopGPR<InstARM32::Rev, false>;
798 // Technically, the uxt{b,h} and sxt{b,h} instructions have a rotation 798 // Technically, the uxt{b,h} and sxt{b,h} instructions have a rotation
799 // operand as well (rotate source by 8, 16, 24 bits prior to extending), 799 // operand as well (rotate source by 8, 16, 24 bits prior to extending),
800 // but we aren't using that for now, so just model as a Unaryop. 800 // but we aren't using that for now, so just model as a Unaryop.
801 typedef InstARM32UnaryopGPR<InstARM32::Sxt, true> InstARM32Sxt; 801 using InstARM32Sxt = InstARM32UnaryopGPR<InstARM32::Sxt, true>;
802 typedef InstARM32UnaryopGPR<InstARM32::Uxt, true> InstARM32Uxt; 802 using InstARM32Uxt = InstARM32UnaryopGPR<InstARM32::Uxt, true>;
803 typedef InstARM32UnaryopFP<InstARM32::Vsqrt> InstARM32Vsqrt; 803 using InstARM32Vsqrt = InstARM32UnaryopFP<InstARM32::Vsqrt>;
804 typedef InstARM32FourAddrGPR<InstARM32::Mla> InstARM32Mla; 804 using InstARM32Mla = InstARM32FourAddrGPR<InstARM32::Mla>;
805 typedef InstARM32FourAddrGPR<InstARM32::Mls> InstARM32Mls; 805 using InstARM32Mls = InstARM32FourAddrGPR<InstARM32::Mls>;
806 typedef InstARM32CmpLike<InstARM32::Cmp> InstARM32Cmp; 806 using InstARM32Cmp = InstARM32CmpLike<InstARM32::Cmp>;
807 typedef InstARM32CmpLike<InstARM32::Tst> InstARM32Tst; 807 using InstARM32Tst = InstARM32CmpLike<InstARM32::Tst>;
808 808
809 // InstARM32Label represents an intra-block label that is the target 809 // InstARM32Label represents an intra-block label that is the target
810 // of an intra-block branch. The offset between the label and the 810 // of an intra-block branch. The offset between the label and the
811 // branch must be fit in the instruction immediate (considered "near"). 811 // branch must be fit in the instruction immediate (considered "near").
812 class InstARM32Label : public InstARM32 { 812 class InstARM32Label : public InstARM32 {
813 InstARM32Label() = delete; 813 InstARM32Label() = delete;
814 InstARM32Label(const InstARM32Label &) = delete; 814 InstARM32Label(const InstARM32Label &) = delete;
815 InstARM32Label &operator=(const InstARM32Label &) = delete; 815 InstARM32Label &operator=(const InstARM32Label &) = delete;
816 816
817 public: 817 public:
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1126 template <> void InstARM32Ldr::emit(const Cfg *Func) const; 1126 template <> void InstARM32Ldr::emit(const Cfg *Func) const;
1127 template <> void InstARM32Mov::emit(const Cfg *Func) const; 1127 template <> void InstARM32Mov::emit(const Cfg *Func) const;
1128 template <> void InstARM32Movw::emit(const Cfg *Func) const; 1128 template <> void InstARM32Movw::emit(const Cfg *Func) const;
1129 template <> void InstARM32Movt::emit(const Cfg *Func) const; 1129 template <> void InstARM32Movt::emit(const Cfg *Func) const;
1130 template <> void InstARM32Vldr::emit(const Cfg *Func) const; 1130 template <> void InstARM32Vldr::emit(const Cfg *Func) const;
1131 template <> void InstARM32Vmov::emit(const Cfg *Func) const; 1131 template <> void InstARM32Vmov::emit(const Cfg *Func) const;
1132 1132
1133 } // end of namespace Ice 1133 } // end of namespace Ice
1134 1134
1135 #endif // SUBZERO_SRC_ICEINSTARM32_H 1135 #endif // SUBZERO_SRC_ICEINSTARM32_H
OLDNEW
« no previous file with comments | « src/IceInst.h ('k') | src/IceInstX86Base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698