| OLD | NEW |
| 1 //===- subzero/src/IceASanInstrumentation.h - AddressSanitizer --*- C++ -*-===// | 1 //===- subzero/src/IceASanInstrumentation.h - AddressSanitizer --*- 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 22 matching lines...) Expand all Loading... |
| 33 public: | 33 public: |
| 34 ASanInstrumentation(GlobalContext *Ctx) : Instrumentation(Ctx) {} | 34 ASanInstrumentation(GlobalContext *Ctx) : Instrumentation(Ctx) {} |
| 35 void instrumentGlobals(VariableDeclarationList &Globals) override; | 35 void instrumentGlobals(VariableDeclarationList &Globals) override; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 std::string nextRzName(); | 38 std::string nextRzName(); |
| 39 VariableDeclaration *createRz(VariableDeclarationList *List, | 39 VariableDeclaration *createRz(VariableDeclarationList *List, |
| 40 VariableDeclaration *RzArray, | 40 VariableDeclaration *RzArray, |
| 41 SizeT &RzArraySize, | 41 SizeT &RzArraySize, |
| 42 VariableDeclaration *Global); | 42 VariableDeclaration *Global); |
| 43 void instrumentLoad(LoweringContext &Context, const InstLoad *Inst) override; | 43 void instrumentCall(LoweringContext &Context, InstCall *Instr) override; |
| 44 void instrumentStore(LoweringContext &Context, | 44 void instrumentLoad(LoweringContext &Context, InstLoad *Instr) override; |
| 45 const InstStore *Inst) override; | 45 void instrumentStore(LoweringContext &Context, InstStore *Instr) override; |
| 46 void instrumentAccess(LoweringContext &Context, Operand *Op, SizeT Size); | 46 void instrumentAccess(LoweringContext &Context, Operand *Op, SizeT Size); |
| 47 void instrumentStart(Cfg *Func) override; | 47 void instrumentStart(Cfg *Func) override; |
| 48 bool DidInsertRedZones = false; | 48 bool DidInsertRedZones = false; |
| 49 uint32_t RzNum = 0; | 49 uint32_t RzNum = 0; |
| 50 }; | 50 }; |
| 51 } // end of namespace Ice | 51 } // end of namespace Ice |
| 52 | 52 |
| 53 #endif // SUBZERO_SRC_ICEASANINSTRUMENTATION_H | 53 #endif // SUBZERO_SRC_ICEASANINSTRUMENTATION_H |
| OLD | NEW |