retdec
x86.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_BIN2LLVMIR_PROVIDERS_ABI_X86_H
8 #define RETDEC_BIN2LLVMIR_PROVIDERS_ABI_X86_H
9 
11 
12 namespace retdec {
13 namespace bin2llvmir {
14 
15 class AbiX86 : public Abi
16 {
17  // Ctors, dtors.
18  //
19  public:
20  AbiX86(llvm::Module* m, Config* c);
21 
22  // Registers.
23  //
24  public:
25  virtual bool isGeneralPurposeRegister(const llvm::Value* val) const override;
26 
27  // Instructions.
28  //
29  public:
30  virtual bool isNopInstruction(cs_insn* insn) override;
31 
32  // Calling conventions.
33  //
34  private:
36 };
37 
38 } // namespace bin2llvmir
39 } // namespace retdec
40 
41 #endif
ABI information.
Definition: x86.h:16
AbiX86(llvm::Module *m, Config *c)
Definition: x86.cpp:14
virtual bool isNopInstruction(cs_insn *insn) override
Definition: x86.cpp:48
virtual bool isGeneralPurposeRegister(const llvm::Value *val) const override
Definition: x86.cpp:35
CallingConvention::ID fetchDefaultCC() const
Definition: x86.cpp:92
Definition: abi.h:27
Definition: config.h:24
eCC
Definition: calling_convention.h:24
The frontend-end part of the decompiler.
Definition: archive_wrapper.h:19