48 I->getType()->getElementType(),
49 I->isConstant(),
I->getLinkage(),
52 I->getThreadLocalMode(),
53 I->getType()->getAddressSpace());
62 I->getLinkage(),
I->getName(), New);
71 I->getName(), NULL, New);
83 if (
I->hasInitializer())
91 if (!
I->isDeclaration()) {
95 DestI->setName(J->getName());
StringRef getName() const
getName - Return a constant reference to this named metadata's name.
void setDataLayout(StringRef DL)
Set the data layout.
virtual void copyAttributesFrom(const GlobalValue *Src)
Module * CloneModule(const Module *M)
The main container class for the LLVM Intermediate Representation.
void addOperand(MDNode *M)
addOperand - Add metadata operand.
named_metadata_iterator named_metadata_end()
NamedMDNode * getOrInsertNamedMetadata(StringRef Name)
const std::string & getTargetTriple() const
void CloneFunctionInto(Function *NewFunc, const Function *OldFunc, ValueToValueMapTy &VMap, bool ModuleLevelChanges, SmallVectorImpl< ReturnInst * > &Returns, const char *NameSuffix="", ClonedCodeInfo *CodeInfo=0, ValueMapTypeRemapper *TypeMapper=0, ValueMaterializer *Materializer=0)
Value * MapValue(const Value *V, ValueToValueMapTy &VM, RemapFlags Flags=RF_None, ValueMapTypeRemapper *TypeMapper=0, ValueMaterializer *Materializer=0)
void setInitializer(Constant *InitVal)
void setModuleInlineAsm(StringRef Asm)
Set the module-scope inline assembly blocks.
void copyAttributesFrom(const GlobalValue *Src)
const std::string & getModuleIdentifier() const
global_iterator global_begin()
alias_iterator alias_end()
LLVM Constant Representation.
MDNode * getOperand(unsigned i) const
getOperand - Return specified operand.
const std::string & getModuleInlineAsm() const
global_iterator global_end()
const std::string & getDataLayout() const
void copyAttributesFrom(const GlobalValue *Src)
alias_iterator alias_begin()
void setAliasee(Constant *GV)
set/getAliasee - These methods retrive and set alias target.
void setTargetTriple(StringRef T)
Set the target triple.
unsigned getNumOperands() const
getNumOperands - Return the number of NamedMDNode operands.
named_metadata_iterator named_metadata_begin()
LLVMContext & getContext() const
static Function * Create(FunctionType *Ty, LinkageTypes Linkage, const Twine &N="", Module *M=0)