LLVM 22.0.0git
IRMover.cpp File Reference

Go to the source code of this file.

Functions

static Error stringErr (const Twine &T)
 Most of the errors produced by this module are inconvertible StringErrors.
static void forceRenaming (GlobalValue *GV, StringRef Name)
 The LLVM SymbolTable class autorenames globals that conflict in the symbol table.
static StringRef getTypeNamePrefix (StringRef Name)
static void getArrayElements (const Constant *C, SmallVectorImpl< Constant * > &Dest)
static std::string adjustInlineAsm (const std::string &InlineAsm, const Triple &Triple)
 Return InlineAsm adjusted with target-specific directives if required.

Function Documentation

◆ adjustInlineAsm()

std::string adjustInlineAsm ( const std::string & InlineAsm,
const Triple & Triple )
static

Return InlineAsm adjusted with target-specific directives if required.

For ARM and Thumb, we have to add directives to select the appropriate ISA to support mixing module-level inline assembly from ARM and Thumb modules.

Definition at line 1419 of file IRMover.cpp.

References llvm::Triple::arm, llvm::Triple::armeb, llvm::Triple::getArch(), llvm::Triple::thumb, and llvm::Triple::thumbeb.

◆ forceRenaming()

void forceRenaming ( GlobalValue * GV,
StringRef Name )
static

The LLVM SymbolTable class autorenames globals that conflict in the symbol table.

This is good for all clients except for us. Go through the trouble to force this back.

Definition at line 469 of file IRMover.cpp.

References assert(), llvm::Value::getName(), llvm::GlobalValue::getParent(), llvm::GlobalValue::hasLocalLinkage(), llvm::Value::setName(), and llvm::Value::takeName().

◆ getArrayElements()

void getArrayElements ( const Constant * C,
SmallVectorImpl< Constant * > & Dest )
static

◆ getTypeNamePrefix()

StringRef getTypeNamePrefix ( StringRef Name)
static

Definition at line 683 of file IRMover.cpp.

References llvm::StringRef::npos.

◆ stringErr()

Error stringErr ( const Twine & T)
static

Most of the errors produced by this module are inconvertible StringErrors.

This convenience function lets us return one of those more easily.

Definition at line 38 of file IRMover.cpp.

References llvm::inconvertibleErrorCode(), llvm::make_error(), and T.