OLD | NEW |
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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 public: | 462 public: |
463 std::unique_ptr<AutoBundle> Bundler; | 463 std::unique_ptr<AutoBundle> Bundler; |
464 X86OperandMem **const MemOperand; | 464 X86OperandMem **const MemOperand; |
465 | 465 |
466 template <typename... T> | 466 template <typename... T> |
467 AutoMemorySandboxer(typename Traits::TargetLowering *Target, T... Args) | 467 AutoMemorySandboxer(typename Traits::TargetLowering *Target, T... Args) |
468 : Target(Target), MemOperand(Target->SandboxingType == ST_None | 468 : Target(Target), MemOperand(Target->SandboxingType == ST_None |
469 ? nullptr | 469 ? nullptr |
470 : findMemoryReference(Args...)) { | 470 : findMemoryReference(Args...)) { |
471 if (MemOperand != nullptr) { | 471 if (MemOperand != nullptr) { |
472 Bundler = makeUnique<AutoBundle>(Target, BundleLockOpt); | 472 if (Traits::Is64Bit) { |
| 473 Bundler = makeUnique<AutoBundle>(Target, BundleLockOpt); |
| 474 } |
473 *MemOperand = Target->_sandbox_mem_reference(*MemOperand); | 475 *MemOperand = Target->_sandbox_mem_reference(*MemOperand); |
474 } | 476 } |
475 } | 477 } |
476 | 478 |
477 ~AutoMemorySandboxer() {} | 479 ~AutoMemorySandboxer() {} |
478 }; | 480 }; |
479 | 481 |
480 /// The following are helpers that insert lowered x86 instructions with | 482 /// The following are helpers that insert lowered x86 instructions with |
481 /// minimal syntactic overhead, so that the lowering code can look as close to | 483 /// minimal syntactic overhead, so that the lowering code can look as close to |
482 /// assembly as practical. | 484 /// assembly as practical. |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 | 1121 |
1120 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} | 1122 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} |
1121 }; | 1123 }; |
1122 | 1124 |
1123 } // end of namespace X86NAMESPACE | 1125 } // end of namespace X86NAMESPACE |
1124 } // end of namespace Ice | 1126 } // end of namespace Ice |
1125 | 1127 |
1126 #include "IceTargetLoweringX86BaseImpl.h" | 1128 #include "IceTargetLoweringX86BaseImpl.h" |
1127 | 1129 |
1128 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H | 1130 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H |
OLD | NEW |