search for: setunnamedaddr

Displaying 3 results from an estimated 3 matches for "setunnamedaddr".

2019 Aug 31
3
Usage of the jumptable attribute
...   using namespace llvm;     namespace {       struct MyPass : public ModulePass {         static char ID;         MyPass() : ModulePass(ID) {}         bool runOnModule(Module &M) override {           for (Function &F : M.getFunctionList()) {             if (!F.isDeclaration()) { F.setUnnamedAddr(GlobalValue::UnnamedAddr::Global);               F.addFnAttr(Attribute::JumpTable);             }           }           return true;         }       };     }     char MyPass::ID = 0;     static RegisterPass<MyPass> X("mypass", "My Pass"); And I wrote a program t...
2017 Apr 04
3
RFC: Adding a string table to the bitcode format
On Tue, Apr 4, 2017 at 12:36 PM, Duncan P. N. Exon Smith < dexonsmith at apple.com> wrote: > > On 2017-Apr-04, at 12:12, Peter Collingbourne <peter at pcc.me.uk> wrote: > > On Mon, Apr 3, 2017 at 8:13 PM, Mehdi Amini <mehdi.amini at apple.com> wrote: > >> >> On Apr 3, 2017, at 7:08 PM, Peter Collingbourne <peter at pcc.me.uk> wrote: >>
2016 Apr 17
2
Problems with GEP and CallInst
...true, llvm::GlobalValue::PrivateLinkage, llvm::ConstantDataArray::getString(container->getContext(), val.c_str()), ".str"); strcst->setUnnamedAddr(true); strcst->setAlignment(chrtype->getByteSize()); } return builder->CreateInBoundsGEP(arty, strcst, llvm::ConstantInt::get(llvm::Type::getInt8Ty(container->getContext()), 0)); } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http...