LCOV - code coverage report
Current view: top level - lib/Target/AMDGPU - AMDGPUCallLowering.h (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 1 1 100.0 %
Date: 2017-09-14 15:23:50 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- lib/Target/AMDGPU/AMDGPUCallLowering.h - Call lowering -*- C++ -*---===//
       2             : //
       3             : //                     The LLVM Compiler Infrastructure
       4             : //
       5             : // This file is distributed under the University of Illinois Open Source
       6             : // License. See LICENSE.TXT for details.
       7             : //
       8             : //===----------------------------------------------------------------------===//
       9             : ///
      10             : /// \file
      11             : /// This file describes how to lower LLVM calls to machine code calls.
      12             : ///
      13             : //===----------------------------------------------------------------------===//
      14             : 
      15             : #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUCALLLOWERING_H
      16             : #define LLVM_LIB_TARGET_AMDGPU_AMDGPUCALLLOWERING_H
      17             : 
      18             : #include "AMDGPU.h"
      19             : #include "llvm/CodeGen/GlobalISel/CallLowering.h"
      20             : 
      21             : namespace llvm {
      22             : 
      23             : class AMDGPUTargetLowering;
      24             : 
      25        1788 : class AMDGPUCallLowering: public CallLowering {
      26             :   AMDGPUAS AMDGPUASI;
      27             : 
      28             :   unsigned lowerParameterPtr(MachineIRBuilder &MIRBuilder, Type *ParamTy,
      29             :                              unsigned Offset) const;
      30             : 
      31             :   void lowerParameter(MachineIRBuilder &MIRBuilder, Type *ParamTy,
      32             :                       unsigned Offset, unsigned DstReg) const;
      33             : 
      34             :  public:
      35             :   AMDGPUCallLowering(const AMDGPUTargetLowering &TLI);
      36             : 
      37             :   bool lowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val,
      38             :                    unsigned VReg) const override;
      39             :   bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
      40             :                             ArrayRef<unsigned> VRegs) const override;
      41             :   static CCAssignFn *CCAssignFnForCall(CallingConv::ID CC, bool IsVarArg);
      42             :   static CCAssignFn *CCAssignFnForReturn(CallingConv::ID CC, bool IsVarArg);
      43             : };
      44             : } // End of namespace llvm;
      45             : #endif

Generated by: LCOV version 1.13