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

Side by Side Diff: src/IceTargetLowering.h

Issue 372113005: Add support for passing and returning vectors in accordance with the x86 calling convention. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Reset AllowOverlap, add comment on lowerCall() strategies, and use X86_MAX_XMM_ARGS where appropria… Created 6 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/IceOperand.cpp ('k') | src/IceTargetLoweringX8632.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/IceTargetLowering.h - Lowering interface -----*- C++ -*-===// 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- 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 // This file declares the TargetLowering and LoweringContext 10 // This file declares the TargetLowering and LoweringContext
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 }; 141 };
142 typedef uint32_t RegSetMask; 142 typedef uint32_t RegSetMask;
143 143
144 virtual llvm::SmallBitVector getRegisterSet(RegSetMask Include, 144 virtual llvm::SmallBitVector getRegisterSet(RegSetMask Include,
145 RegSetMask Exclude) const = 0; 145 RegSetMask Exclude) const = 0;
146 virtual const llvm::SmallBitVector &getRegisterSetForType(Type Ty) const = 0; 146 virtual const llvm::SmallBitVector &getRegisterSetForType(Type Ty) const = 0;
147 void regAlloc(); 147 void regAlloc();
148 148
149 virtual void emitVariable(const Variable *Var, const Cfg *Func) const = 0; 149 virtual void emitVariable(const Variable *Var, const Cfg *Func) const = 0;
150 150
151 // Performs target-specific argument lowering.
152 virtual void lowerArguments() = 0;
153
151 virtual void addProlog(CfgNode *Node) = 0; 154 virtual void addProlog(CfgNode *Node) = 0;
152 virtual void addEpilog(CfgNode *Node) = 0; 155 virtual void addEpilog(CfgNode *Node) = 0;
153 156
154 virtual void emitConstants() const = 0; 157 virtual void emitConstants() const = 0;
155 158
156 virtual ~TargetLowering() {} 159 virtual ~TargetLowering() {}
157 160
158 protected: 161 protected:
159 TargetLowering(Cfg *Func) 162 TargetLowering(Cfg *Func)
160 : Func(Func), Ctx(Func->getContext()), HasComputedFrame(false), 163 : Func(Func), Ctx(Func->getContext()), HasComputedFrame(false),
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 private: 221 private:
219 TargetGlobalInitLowering(const TargetGlobalInitLowering &) 222 TargetGlobalInitLowering(const TargetGlobalInitLowering &)
220 LLVM_DELETED_FUNCTION; 223 LLVM_DELETED_FUNCTION;
221 TargetGlobalInitLowering & 224 TargetGlobalInitLowering &
222 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION; 225 operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION;
223 }; 226 };
224 227
225 } // end of namespace Ice 228 } // end of namespace Ice
226 229
227 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 230 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698