LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::InlineResult Class Reference

InlineResult is basically true or false. More...

#include "llvm/Analysis/InlineCost.h"

Public Member Functions

bool isSuccess () const
 
const chargetFailureReason () const
 

Static Public Member Functions

static InlineResult success ()
 
static InlineResult failure (const char *Reason)
 

Detailed Description

InlineResult is basically true or false.

For false results the message describes a reason.

Definition at line 179 of file InlineCost.h.

Member Function Documentation

◆ failure()

static InlineResult llvm::InlineResult::failure ( const char Reason)
inlinestatic

◆ getFailureReason()

const char * llvm::InlineResult::getFailureReason ( ) const
inline

Definition at line 189 of file InlineCost.h.

References assert(), and isSuccess().

Referenced by llvm::getInlineCost().

◆ isSuccess()

bool llvm::InlineResult::isSuccess ( ) const
inline

Definition at line 188 of file InlineCost.h.

Referenced by getFailureReason(), llvm::getInlineCost(), and InsertSafepointPoll().

◆ success()

static InlineResult llvm::InlineResult::success ( )
inlinestatic

The documentation for this class was generated from the following file: