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

Side by Side Diff: src/IceInstX86Base.h

Issue 1651163002: Subzero. Enables moar complex relocation offsets. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: make format Created 4 years, 10 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/IceGlobalContext.cpp ('k') | src/IceInstX86BaseImpl.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/IceInstX86Base.h - Generic x86 instructions -*- C++ -*--===// 1 //===- subzero/src/IceInstX86Base.h - Generic x86 instructions -*- 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 public: 330 public:
331 static InstX86Label *create(Cfg *Func, TargetLowering *Target) { 331 static InstX86Label *create(Cfg *Func, TargetLowering *Target) {
332 return new (Func->allocate<InstX86Label>()) InstX86Label(Func, Target); 332 return new (Func->allocate<InstX86Label>()) InstX86Label(Func, Target);
333 } 333 }
334 uint32_t getEmitInstCount() const override { return 0; } 334 uint32_t getEmitInstCount() const override { return 0; }
335 IceString getName(const Cfg *Func) const; 335 IceString getName(const Cfg *Func) const;
336 SizeT getNumber() const { return Number; } 336 SizeT getNumber() const { return Number; }
337 void emit(const Cfg *Func) const override; 337 void emit(const Cfg *Func) const override;
338 void emitIAS(const Cfg *Func) const override; 338 void emitIAS(const Cfg *Func) const override;
339 void dump(const Cfg *Func) const override; 339 void dump(const Cfg *Func) const override;
340 void setIsReturnLocation(bool Value) { IsReturnLocation = Value; } 340 void setRelocOffset(RelocOffset *Value) { OffsetReloc = Value; }
341 341
342 private: 342 private:
343 InstX86Label(Cfg *Func, TargetLowering *Target); 343 InstX86Label(Cfg *Func, TargetLowering *Target);
344 344
345 SizeT Number; // used for unique label generation. 345 SizeT Number; // used for unique label generation.
346 bool IsReturnLocation = false; 346 RelocOffset *OffsetReloc = nullptr;
347 }; 347 };
348 348
349 /// Conditional and unconditional branch instruction. 349 /// Conditional and unconditional branch instruction.
350 class InstX86Br final : public InstX86Base { 350 class InstX86Br final : public InstX86Base {
351 InstX86Br() = delete; 351 InstX86Br() = delete;
352 InstX86Br(const InstX86Br &) = delete; 352 InstX86Br(const InstX86Br &) = delete;
353 InstX86Br &operator=(const InstX86Br &) = delete; 353 InstX86Br &operator=(const InstX86Br &) = delete;
354 354
355 public: 355 public:
356 enum Mode { Near, Far }; 356 enum Mode { Near, Far };
(...skipping 3171 matching lines...) Expand 10 before | Expand all | Expand 10 after
3528 &InstImpl<TraitsType>::Assembler::psrl}; \ 3528 &InstImpl<TraitsType>::Assembler::psrl}; \
3529 } \ 3529 } \
3530 } 3530 }
3531 3531
3532 } // end of namespace X86NAMESPACE 3532 } // end of namespace X86NAMESPACE
3533 } // end of namespace Ice 3533 } // end of namespace Ice
3534 3534
3535 #include "IceInstX86BaseImpl.h" 3535 #include "IceInstX86BaseImpl.h"
3536 3536
3537 #endif // SUBZERO_SRC_ICEINSTX86BASE_H 3537 #endif // SUBZERO_SRC_ICEINSTX86BASE_H
OLDNEW
« no previous file with comments | « src/IceGlobalContext.cpp ('k') | src/IceInstX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698