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

Side by Side Diff: src/IceTargetLoweringX86Base.h

Issue 1257283004: Iasm and obj lowering for advanced switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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/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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 Context.insert(Traits::Insts::And::create(Func, Dest, Src0)); 261 Context.insert(Traits::Insts::And::create(Func, Dest, Src0));
262 } 262 }
263 void _and_rmw(typename Traits::X86OperandMem *DestSrc0, Operand *Src1) { 263 void _and_rmw(typename Traits::X86OperandMem *DestSrc0, Operand *Src1) {
264 Context.insert(Traits::Insts::AndRMW::create(Func, DestSrc0, Src1)); 264 Context.insert(Traits::Insts::AndRMW::create(Func, DestSrc0, Src1));
265 } 265 }
266 void _blendvps(Variable *Dest, Operand *Src0, Operand *Src1) { 266 void _blendvps(Variable *Dest, Operand *Src0, Operand *Src1) {
267 Context.insert(Traits::Insts::Blendvps::create(Func, Dest, Src0, Src1)); 267 Context.insert(Traits::Insts::Blendvps::create(Func, Dest, Src0, Src1));
268 } 268 }
269 void _br(typename Traits::Cond::BrCond Condition, CfgNode *TargetTrue, 269 void _br(typename Traits::Cond::BrCond Condition, CfgNode *TargetTrue,
270 CfgNode *TargetFalse) { 270 CfgNode *TargetFalse) {
271 Context.insert( 271 Context.insert(Traits::Insts::Br::create(
272 Traits::Insts::Br::create(Func, TargetTrue, TargetFalse, Condition)); 272 Func, TargetTrue, TargetFalse, Condition, Traits::Insts::Br::Far));
273 } 273 }
274 void _br(CfgNode *Target) { 274 void _br(CfgNode *Target) {
275 Context.insert(Traits::Insts::Br::create(Func, Target)); 275 Context.insert(
276 Traits::Insts::Br::create(Func, Target, Traits::Insts::Br::Far));
276 } 277 }
277 void _br(typename Traits::Cond::BrCond Condition, CfgNode *Target) { 278 void _br(typename Traits::Cond::BrCond Condition, CfgNode *Target) {
278 Context.insert(Traits::Insts::Br::create(Func, Target, Condition)); 279 Context.insert(Traits::Insts::Br::create(Func, Target, Condition,
280 Traits::Insts::Br::Far));
279 } 281 }
280 void _br(typename Traits::Cond::BrCond Condition, 282 void _br(typename Traits::Cond::BrCond Condition,
281 typename Traits::Insts::Label *Label) { 283 typename Traits::Insts::Label *Label,
282 Context.insert(Traits::Insts::Br::create(Func, Label, Condition)); 284 typename Traits::Insts::Br::BrKind Kind = Traits::Insts::Br::Near) {
285 Context.insert(Traits::Insts::Br::create(Func, Label, Condition, Kind));
283 } 286 }
284 void _bsf(Variable *Dest, Operand *Src0) { 287 void _bsf(Variable *Dest, Operand *Src0) {
285 Context.insert(Traits::Insts::Bsf::create(Func, Dest, Src0)); 288 Context.insert(Traits::Insts::Bsf::create(Func, Dest, Src0));
286 } 289 }
287 void _bsr(Variable *Dest, Operand *Src0) { 290 void _bsr(Variable *Dest, Operand *Src0) {
288 Context.insert(Traits::Insts::Bsr::create(Func, Dest, Src0)); 291 Context.insert(Traits::Insts::Bsr::create(Func, Dest, Src0));
289 } 292 }
290 void _bswap(Variable *SrcDest) { 293 void _bswap(Variable *SrcDest) {
291 Context.insert(Traits::Insts::Bswap::create(Func, SrcDest)); 294 Context.insert(Traits::Insts::Bswap::create(Func, SrcDest));
292 } 295 }
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 } 608 }
606 609
607 BoolFolding FoldingInfo; 610 BoolFolding FoldingInfo;
608 }; 611 };
609 } // end of namespace X86Internal 612 } // end of namespace X86Internal
610 } // end of namespace Ice 613 } // end of namespace Ice
611 614
612 #include "IceTargetLoweringX86BaseImpl.h" 615 #include "IceTargetLoweringX86BaseImpl.h"
613 616
614 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H 617 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698