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

Side by Side Diff: src/IceInst.h

Issue 794823002: Remove using LLVM tools to check correctness of cast operation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in patch set 4. Created 6 years 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 | « no previous file | src/IceInst.cpp » ('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/IceInst.h - High-level instructions ----------*- C++ -*-===// 1 //===- subzero/src/IceInst.h - High-level 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 // This file declares the Inst class and its target-independent 10 // This file declares the Inst class and its target-independent
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 InstCast &operator=(const InstCast &) = delete; 390 InstCast &operator=(const InstCast &) = delete;
391 391
392 public: 392 public:
393 enum OpKind { 393 enum OpKind {
394 #define X(tag, str) tag, 394 #define X(tag, str) tag,
395 ICEINSTCAST_TABLE 395 ICEINSTCAST_TABLE
396 #undef X 396 #undef X
397 _num 397 _num
398 }; 398 };
399 399
400 static const char *getCastName(OpKind Kind);
401
400 static InstCast *create(Cfg *Func, OpKind CastKind, Variable *Dest, 402 static InstCast *create(Cfg *Func, OpKind CastKind, Variable *Dest,
401 Operand *Source) { 403 Operand *Source) {
402 return new (Func->allocateInst<InstCast>()) 404 return new (Func->allocateInst<InstCast>())
403 InstCast(Func, CastKind, Dest, Source); 405 InstCast(Func, CastKind, Dest, Source);
404 } 406 }
405 OpKind getCastKind() const { return CastKind; } 407 OpKind getCastKind() const { return CastKind; }
406 void dump(const Cfg *Func) const override; 408 void dump(const Cfg *Func) const override;
407 static bool classof(const Inst *Inst) { return Inst->getKind() == Cast; } 409 static bool classof(const Inst *Inst) { return Inst->getKind() == Cast; }
408 410
409 private: 411 private:
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 static void noteHead(Ice::Inst *, Ice::Inst *) {} 861 static void noteHead(Ice::Inst *, Ice::Inst *) {}
860 void deleteNode(Ice::Inst *) {} 862 void deleteNode(Ice::Inst *) {}
861 863
862 private: 864 private:
863 mutable ilist_half_node<Ice::Inst> Sentinel; 865 mutable ilist_half_node<Ice::Inst> Sentinel;
864 }; 866 };
865 867
866 } // end of namespace llvm 868 } // end of namespace llvm
867 869
868 #endif // SUBZERO_SRC_ICEINST_H 870 #endif // SUBZERO_SRC_ICEINST_H
OLDNEW
« no previous file with comments | « no previous file | src/IceInst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698