LLVM 23.0.0git
InstrumentorStubPrinter.cpp File Reference
#include "llvm/Transforms/IPO/Instrumentor.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <string>
#include <system_error>

Go to the source code of this file.

Namespaces

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

Functions

static std::pair< std::string, std::string > llvm::instrumentor::getAsCType (Type *Ty, unsigned Flags)
 Get the string representation of an argument with type Ty.
static std::string llvm::instrumentor::getPrintfFormatString (Type *Ty, unsigned Flags)
 Get the string representation of the C printf format of an argument with type Ty.
void llvm::instrumentor::printRuntimeStub (const InstrumentationConfig &IConf, StringRef StubRuntimeName, LLVMContext &Ctx)
 Print a runtime stub file with the implementation of the instrumentation runtime functions corresponding to the instrumentation opportunities enabled.