Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 // This file declares the TargetLoweringX8632 class, which | 10 // This file declares the TargetLoweringX8632 class, which |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 563 const X86InstructionSet InstructionSet; | 563 const X86InstructionSet InstructionSet; |
| 564 bool IsEbpBasedFrame; | 564 bool IsEbpBasedFrame; |
| 565 bool NeedsStackAlignment; | 565 bool NeedsStackAlignment; |
| 566 size_t SpillAreaSizeBytes; | 566 size_t SpillAreaSizeBytes; |
| 567 llvm::SmallBitVector TypeToRegisterSet[IceType_NUM]; | 567 llvm::SmallBitVector TypeToRegisterSet[IceType_NUM]; |
| 568 llvm::SmallBitVector ScratchRegs; | 568 llvm::SmallBitVector ScratchRegs; |
| 569 llvm::SmallBitVector RegsUsed; | 569 llvm::SmallBitVector RegsUsed; |
| 570 VarList PhysicalRegisters[IceType_NUM]; | 570 VarList PhysicalRegisters[IceType_NUM]; |
| 571 static IceString RegNames[]; | 571 static IceString RegNames[]; |
| 572 | 572 |
| 573 // Randomize a given immediate operand | |
| 574 uint32_t getRandomizationCookie(); | |
|
Jim Stichnoth
2015/06/12 23:48:18
I think this method should be const.
| |
| 575 Operand *randomizeOrPoolImmediate(Constant *immediate, | |
|
Jim Stichnoth
2015/06/12 23:48:18
capitalize "immediate"
| |
| 576 int32_t RegNum = Variable::NoRegister); | |
| 577 OperandX8632Mem * | |
| 578 randomizeOrPoolImmediate(OperandX8632Mem *MemOperand, | |
| 579 int32_t RegNum = Variable::NoRegister); | |
| 580 bool RandomizationPoolingPaused; | |
| 581 | |
| 573 private: | 582 private: |
| 574 ~TargetX8632() override {} | 583 ~TargetX8632() override {} |
| 575 BoolFolding FoldingInfo; | 584 BoolFolding FoldingInfo; |
| 576 }; | 585 }; |
| 577 | 586 |
| 578 class TargetDataX8632 : public TargetDataLowering { | 587 class TargetDataX8632 : public TargetDataLowering { |
| 579 TargetDataX8632() = delete; | 588 TargetDataX8632() = delete; |
| 580 TargetDataX8632(const TargetDataX8632 &) = delete; | 589 TargetDataX8632(const TargetDataX8632 &) = delete; |
| 581 TargetDataX8632 &operator=(const TargetDataX8632 &) = delete; | 590 TargetDataX8632 &operator=(const TargetDataX8632 &) = delete; |
| 582 | 591 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 610 protected: | 619 protected: |
| 611 explicit TargetHeaderX8632(GlobalContext *Ctx); | 620 explicit TargetHeaderX8632(GlobalContext *Ctx); |
| 612 | 621 |
| 613 private: | 622 private: |
| 614 ~TargetHeaderX8632() = default; | 623 ~TargetHeaderX8632() = default; |
| 615 }; | 624 }; |
| 616 | 625 |
| 617 } // end of namespace Ice | 626 } // end of namespace Ice |
| 618 | 627 |
| 619 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 628 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
| OLD | NEW |