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

Side by Side Diff: src/IceTargetLoweringX8632.h

Issue 1266673003: Subzero. Implements x86-64 lowerCall. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: git pull & painful merge. Created 5 years, 4 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
OLDNEW
1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 lowering ---*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 lowering ---*- 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 23 matching lines...) Expand all
34 TargetX8632 &operator=(const TargetX8632 &) = delete; 34 TargetX8632 &operator=(const TargetX8632 &) = delete;
35 35
36 void emitJumpTable(const Cfg *Func, 36 void emitJumpTable(const Cfg *Func,
37 const InstJumpTable *JumpTable) const override; 37 const InstJumpTable *JumpTable) const override;
38 38
39 public: 39 public:
40 using X86InstructionSet = X8632::Traits::InstructionSet; 40 using X86InstructionSet = X8632::Traits::InstructionSet;
41 41
42 static TargetX8632 *create(Cfg *Func) { return new TargetX8632(Func); } 42 static TargetX8632 *create(Cfg *Func) { return new TargetX8632(Func); }
43 43
44 protected:
45 void lowerCall(const InstCall *Instr) override;
46
44 private: 47 private:
45 friend class ::Ice::X86Internal::TargetX86Base<TargetX8632>; 48 friend class ::Ice::X86Internal::TargetX86Base<TargetX8632>;
46 49
47 Operand *createNaClReadTPSrcOperand() { 50 Operand *createNaClReadTPSrcOperand() {
48 Constant *Zero = Ctx->getConstantZero(IceType_i32); 51 Constant *Zero = Ctx->getConstantZero(IceType_i32);
49 return Traits::X86OperandMem::create(Func, IceType_i32, nullptr, Zero, 52 return Traits::X86OperandMem::create(Func, IceType_i32, nullptr, Zero,
50 nullptr, 0, 53 nullptr, 0,
51 Traits::X86OperandMem::SegReg_GS); 54 Traits::X86OperandMem::SegReg_GS);
52 } 55 }
53 56
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 protected: 94 protected:
92 explicit TargetHeaderX8632(GlobalContext *Ctx); 95 explicit TargetHeaderX8632(GlobalContext *Ctx);
93 96
94 private: 97 private:
95 ~TargetHeaderX8632() = default; 98 ~TargetHeaderX8632() = default;
96 }; 99 };
97 100
98 } // end of namespace Ice 101 } // end of namespace Ice
99 102
100 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H 103 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698