retdec
pic32.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_BIN2LLVMIR_PROVIDERS_ABI_PIC32_H
8 #define RETDEC_BIN2LLVMIR_PROVIDERS_ABI_PIC32_H
9 
11 
12 namespace retdec {
13 namespace bin2llvmir {
14 
15 class AbiPic32 : public Abi
16 {
17  // Ctors, dtors.
18  //
19  public:
20  AbiPic32(llvm::Module* m, Config* c);
21 
22  // Types
23  //
24  public:
25  virtual std::size_t getTypeByteSize(llvm::Type* t) const override;
26  virtual std::size_t getTypeBitSize(llvm::Type* t) const override;
27 
28  // Registers.
29  //
30  public:
31  virtual bool isGeneralPurposeRegister(const llvm::Value* val) const override;
32 
33  // Instructions.
34  //
35  public:
36  virtual bool isNopInstruction(cs_insn* insn) override;
37 };
38 
39 } // namespace bin2llvmir
40 } // namespace retdec
41 
42 #endif
ABI information.
Definition: pic32.h:16
virtual std::size_t getTypeBitSize(llvm::Type *t) const override
Definition: pic32.cpp:63
virtual std::size_t getTypeByteSize(llvm::Type *t) const override
Definition: pic32.cpp:53
AbiPic32(llvm::Module *m, Config *c)
Definition: pic32.cpp:14
virtual bool isGeneralPurposeRegister(const llvm::Value *val) const override
Definition: pic32.cpp:34
virtual bool isNopInstruction(cs_insn *insn) override
Definition: pic32.cpp:40
Definition: abi.h:27
Definition: config.h:24
The frontend-end part of the decompiler.
Definition: archive_wrapper.h:19