LLVM 20.0.0git
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
MCLinkerOptimizationHint.h File Reference
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include <cassert>
#include <cstdint>

Go to the source code of this file.

Classes

class  llvm::MCLOHDirective
 Store Linker Optimization Hint information (LOH). More...
 
class  llvm::MCLOHContainer
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Macros

#define MCLOHCaseNameToId(Name)   .Case(#Name, MCLOH_ ## Name)
 
#define MCLOHCaseIdToName(Name)   case MCLOH_ ## Name: return StringRef(#Name);
 

Typedefs

using llvm::MCLOHArgs = MCLOHDirective::LOHArgs
 
using llvm::MCLOHDirectives = MCLOHContainer::LOHDirectives
 

Enumerations

enum  llvm::MCLOHType {
  llvm::MCLOH_AdrpAdrp = 0x1u , llvm::MCLOH_AdrpLdr = 0x2u , llvm::MCLOH_AdrpAddLdr = 0x3u , llvm::MCLOH_AdrpLdrGotLdr = 0x4u ,
  llvm::MCLOH_AdrpAddStr = 0x5u , llvm::MCLOH_AdrpLdrGotStr = 0x6u , llvm::MCLOH_AdrpAdd = 0x7u , llvm::MCLOH_AdrpLdrGot = 0x8u
}
 Linker Optimization Hint Type. More...
 

Functions

static StringRef llvm::MCLOHDirectiveName ()
 
static bool llvm::isValidMCLOHType (unsigned Kind)
 
static int llvm::MCLOHNameToId (StringRef Name)
 
static StringRef llvm::MCLOHIdToName (MCLOHType Kind)
 
static int llvm::MCLOHIdToNbArgs (MCLOHType Kind)
 

Macro Definition Documentation

◆ MCLOHCaseIdToName

#define MCLOHCaseIdToName (   Name)    case MCLOH_ ## Name: return StringRef(#Name);

◆ MCLOHCaseNameToId

#define MCLOHCaseNameToId (   Name)    .Case(#Name, MCLOH_ ## Name)