Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:56

0001 //===-- ThreadPlanCallFunctionUsingABI.h --------------------------------*- C++
0002 //-*-===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef LLDB_TARGET_THREADPLANCALLFUNCTIONUSINGABI_H
0011 #define LLDB_TARGET_THREADPLANCALLFUNCTIONUSINGABI_H
0012 
0013 #include "lldb/Target/ABI.h"
0014 #include "lldb/Target/Thread.h"
0015 #include "lldb/Target/ThreadPlanCallFunction.h"
0016 #include "lldb/lldb-private.h"
0017 
0018 #include "llvm/ADT/ArrayRef.h"
0019 #include "llvm/IR/DerivedTypes.h"
0020 
0021 namespace lldb_private {
0022 
0023 class ThreadPlanCallFunctionUsingABI : public ThreadPlanCallFunction {
0024   // Create a thread plan to call a function at the address passed in the
0025   // "function" argument, this function is executed using register manipulation
0026   // instead of JIT. Class derives from ThreadPlanCallFunction and differs by
0027   // calling a alternative
0028   // ABI interface ABI::PrepareTrivialCall() which provides more detailed
0029   // information.
0030 public:
0031   ThreadPlanCallFunctionUsingABI(Thread &thread,
0032                                  const Address &function_address,
0033                                  llvm::Type &function_prototype,
0034                                  llvm::Type &return_type,
0035                                  llvm::ArrayRef<ABI::CallArgument> args,
0036                                  const EvaluateExpressionOptions &options);
0037 
0038   ~ThreadPlanCallFunctionUsingABI() override;
0039 
0040   void GetDescription(Stream *s, lldb::DescriptionLevel level) override;
0041 
0042 protected:
0043   void SetReturnValue() override;
0044 
0045 private:
0046   llvm::Type &m_return_type;
0047   ThreadPlanCallFunctionUsingABI(const ThreadPlanCallFunctionUsingABI &) =
0048       delete;
0049   const ThreadPlanCallFunctionUsingABI &
0050   operator=(const ThreadPlanCallFunctionUsingABI &) = delete;
0051 };
0052 
0053 } // namespace lldb_private
0054 
0055 #endif // LLDB_TARGET_THREADPLANCALLFUNCTIONUSINGABI_H