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

Side by Side Diff: src/IceTargetLoweringX86Base.h

Issue 1245063003: Rename legalizeToVar to the more accurate legalizeToReg. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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/IceTargetLoweringARM32.cpp ('k') | src/IceTargetLoweringX86BaseImpl.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/IceTargetLoweringX86Base.h - x86 lowering ----*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX86Base.h - x86 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 enum OperandLegalization { 239 enum OperandLegalization {
240 Legal_None = 0, 240 Legal_None = 0,
241 Legal_Reg = 1 << 0, // physical register, not stack location 241 Legal_Reg = 1 << 0, // physical register, not stack location
242 Legal_Imm = 1 << 1, 242 Legal_Imm = 1 << 1,
243 Legal_Mem = 1 << 2, // includes [eax+4*ecx] as well as [esp+12] 243 Legal_Mem = 1 << 2, // includes [eax+4*ecx] as well as [esp+12]
244 Legal_All = ~Legal_None 244 Legal_All = ~Legal_None
245 }; 245 };
246 typedef uint32_t LegalMask; 246 typedef uint32_t LegalMask;
247 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All, 247 Operand *legalize(Operand *From, LegalMask Allowed = Legal_All,
248 int32_t RegNum = Variable::NoRegister); 248 int32_t RegNum = Variable::NoRegister);
249 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); 249 Variable *legalizeToReg(Operand *From, int32_t RegNum = Variable::NoRegister);
250 /// Legalize the first source operand for use in the cmp instruction. 250 /// Legalize the first source operand for use in the cmp instruction.
251 Operand *legalizeSrc0ForCmp(Operand *Src0, Operand *Src1); 251 Operand *legalizeSrc0ForCmp(Operand *Src0, Operand *Src1);
252 /// Turn a pointer operand into a memory operand that can be 252 /// Turn a pointer operand into a memory operand that can be
253 /// used by a real load/store operation. Legalizes the operand as well. 253 /// used by a real load/store operation. Legalizes the operand as well.
254 /// This is a nop if the operand is already a legal memory operand. 254 /// This is a nop if the operand is already a legal memory operand.
255 typename Traits::X86OperandMem *formMemoryOperand(Operand *Ptr, Type Ty, 255 typename Traits::X86OperandMem *formMemoryOperand(Operand *Ptr, Type Ty,
256 bool DoLegalize = true); 256 bool DoLegalize = true);
257 257
258 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); 258 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister);
259 static Type stackSlotType(); 259 static Type stackSlotType();
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 private: 630 private:
631 ~TargetX86Base() override {} 631 ~TargetX86Base() override {}
632 BoolFolding FoldingInfo; 632 BoolFolding FoldingInfo;
633 }; 633 };
634 } // end of namespace X86Internal 634 } // end of namespace X86Internal
635 } // end of namespace Ice 635 } // end of namespace Ice
636 636
637 #include "IceTargetLoweringX86BaseImpl.h" 637 #include "IceTargetLoweringX86BaseImpl.h"
638 638
639 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H 639 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | src/IceTargetLoweringX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698