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

Side by Side Diff: src/IceInstrumentation.h

Issue 2079723002: Instrumented malloc and free with dummy functions. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleaned up instrumentCall() Created 4 years, 6 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/IceInstrumentation.h - ICE instrumentation ---*- C++ -*-===// 1 //===- subzero/src/IceInstrumentation.h - ICE instrumentation ---*- 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 30 matching lines...) Expand all
41 41
42 public: 42 public:
43 Instrumentation(GlobalContext *Ctx) : Ctx(Ctx) {} 43 Instrumentation(GlobalContext *Ctx) : Ctx(Ctx) {}
44 virtual void instrumentGlobals(VariableDeclarationList &) {} 44 virtual void instrumentGlobals(VariableDeclarationList &) {}
45 void instrumentFunc(Cfg *Func); 45 void instrumentFunc(Cfg *Func);
46 46
47 private: 47 private:
48 void instrumentInst(LoweringContext &Context); 48 void instrumentInst(LoweringContext &Context);
49 virtual void instrumentFuncStart(LoweringContext &) {} 49 virtual void instrumentFuncStart(LoweringContext &) {}
50 virtual void instrumentAlloca(LoweringContext &, const class InstAlloca *) {} 50 virtual void instrumentAlloca(LoweringContext &, const class InstAlloca *) {}
51 virtual void instrumentArithmetic(LoweringContext &, 51 virtual void instrumentArithmetic(LoweringContext &, class InstArithmetic *) {
52 const class InstArithmetic *) {} 52 }
53 virtual void instrumentBr(LoweringContext &, const class InstBr *) {} 53 virtual void instrumentBr(LoweringContext &, class InstBr *) {}
54 virtual void instrumentCall(LoweringContext &, const class InstCall *) {} 54 virtual void instrumentCall(LoweringContext &, class InstCall *) {}
55 virtual void instrumentCast(LoweringContext &, const class InstCast *) {} 55 virtual void instrumentCast(LoweringContext &, class InstCast *) {}
56 virtual void instrumentExtractElement(LoweringContext &, 56 virtual void instrumentExtractElement(LoweringContext &,
57 const class InstExtractElement *) {} 57 class InstExtractElement *) {}
58 virtual void instrumentFcmp(LoweringContext &, const class InstFcmp *) {} 58 virtual void instrumentFcmp(LoweringContext &, class InstFcmp *) {}
59 virtual void instrumentIcmp(LoweringContext &, const class InstIcmp *) {} 59 virtual void instrumentIcmp(LoweringContext &, class InstIcmp *) {}
60 virtual void instrumentInsertElement(LoweringContext &, 60 virtual void instrumentInsertElement(LoweringContext &,
61 const class InstInsertElement *) {} 61 class InstInsertElement *) {}
62 virtual void instrumentIntrinsicCall(LoweringContext &, 62 virtual void instrumentIntrinsicCall(LoweringContext &,
63 const class InstIntrinsicCall *) {} 63 class InstIntrinsicCall *) {}
64 virtual void instrumentLoad(LoweringContext &, const class InstLoad *) {} 64 virtual void instrumentLoad(LoweringContext &, class InstLoad *) {}
65 virtual void instrumentPhi(LoweringContext &, const class InstPhi *) {} 65 virtual void instrumentPhi(LoweringContext &, class InstPhi *) {}
66 virtual void instrumentRet(LoweringContext &, const class InstRet *) {} 66 virtual void instrumentRet(LoweringContext &, class InstRet *) {}
67 virtual void instrumentSelect(LoweringContext &, const class InstSelect *) {} 67 virtual void instrumentSelect(LoweringContext &, class InstSelect *) {}
68 virtual void instrumentStore(LoweringContext &, const class InstStore *) {} 68 virtual void instrumentStore(LoweringContext &, class InstStore *) {}
69 virtual void instrumentSwitch(LoweringContext &, const class InstSwitch *) {} 69 virtual void instrumentSwitch(LoweringContext &, class InstSwitch *) {}
70 virtual void instrumentUnreachable(LoweringContext &, 70 virtual void instrumentUnreachable(LoweringContext &,
71 const class InstUnreachable *) {} 71 class InstUnreachable *) {}
72 virtual void instrumentStart(Cfg *) {} 72 virtual void instrumentStart(Cfg *) {}
73 virtual void instrumentLocalVars(Cfg *) {} 73 virtual void instrumentLocalVars(Cfg *) {}
74 74
75 protected: 75 protected:
76 GlobalContext *Ctx; 76 GlobalContext *Ctx;
77 }; 77 };
78 78
79 } // end of namespace Ice 79 } // end of namespace Ice
80 80
81 #endif // SUBZERO_SRC_ICEINSTRUMENTATION_H 81 #endif // SUBZERO_SRC_ICEINSTRUMENTATION_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698