LLVM
8.0.1
|
#include "llvm/Transforms/Utils/ModuleUtils.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Functions | |
static void | appendToGlobalArray (const char *Array, Module &M, Function *F, int Priority, Constant *Data) |
static void | appendToUsedList (Module &M, StringRef Name, ArrayRef< GlobalValue *> Values) |
|
static |
Definition at line 23 of file ModuleUtils.cpp.
References llvm::GlobalValue::AppendingLinkage, F(), llvm::FunctionType::get(), llvm::StructType::get(), llvm::ArrayType::get(), llvm::ConstantArray::get(), llvm::ConstantStruct::get(), llvm::Module::getContext(), llvm::SequentialType::getElementType(), llvm::Type::getInt8PtrTy(), llvm::Module::getNamedGlobal(), llvm::Constant::getNullValue(), llvm::StructType::getNumElements(), llvm::ConstantExpr::getPointerCast(), llvm::PointerType::getUnqual(), and llvm::makeArrayRef().
Referenced by llvm::appendToGlobalCtors(), and llvm::appendToGlobalDtors().
|
static |
Definition at line 92 of file ModuleUtils.cpp.
References llvm::GlobalValue::AppendingLinkage, C, llvm::dyn_cast(), llvm::SmallVectorBase::empty(), llvm::GlobalVariable::eraseFromParent(), llvm::ArrayType::get(), llvm::ConstantArray::get(), llvm::ConstantExpr::getBitCast(), llvm::Module::getContext(), llvm::Module::getGlobalVariable(), llvm::GlobalVariable::getInitializer(), llvm::Type::getInt8PtrTy(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::User::operands(), llvm::SmallVectorTemplateBase< T >::push_back(), and llvm::SmallVectorBase::size().
Referenced by llvm::appendToCompilerUsed(), and llvm::appendToUsed().