Displaying 5 results from an estimated 5 matches for "fdecl".
Did you mean:
decl
2013 Jun 27
2
[LLVMdev] Problem with linking modules which use a shared type
...( Type::getVoidTy( context ), types, false );
// m1
Function* f = Function::Create( ft, GlobalValue::ExternalLinkage, "f", m1 );
b = BasicBlock::Create( context, "b", f );
ReturnInst::Create( context, b );
verifyModule(*m1);
// m2
Function* fDecl = Function::Create( ft, GlobalValue::ExternalLinkage, "f", m2 );
Function* h = Function::Create( ft, GlobalValue::ExternalLinkage, "h", m2 );
vector<Value*> args;
args.push_back( h->arg_begin() );
b = BasicBlock::Create( context, "b", h )...
2013 Jun 28
0
[LLVMdev] Problem with linking modules which use a shared type
...;
> // m1
> Function* f = Function::Create( ft, GlobalValue::ExternalLinkage, "f",
> m1 );
>
> b = BasicBlock::Create( context, "b", f );
> ReturnInst::Create( context, b );
>
> verifyModule(*m1);
>
> // m2
> Function* fDecl = Function::Create( ft, GlobalValue::ExternalLinkage,
> "f", m2 );
> Function* h = Function::Create( ft, GlobalValue::ExternalLinkage, "h",
> m2 );
>
> vector<Value*> args;
> args.push_back( h->arg_begin() );
>
> b = BasicBlock::C...
2018 May 01
0
ThinLTO + CFI
Hi Dmitry, the direct call patch seems like a good start; however, by
falling through to the F->replaceUsesExceptBlockAddr(FDecl) at the bottom
of LowerTypeTestsModule::importFunction() I believe it will replace all
uses of a function (for a definition outside the TU it's defined in) with
the direct function reference instead of just direct calls. Also, I believe
the logic for replaceDirectCalls() should be more restrict...
2018 Apr 30
4
ThinLTO + CFI
Replacing direct calls to jump table entries with calls to real targets recovers most of the performance loss in my benchmark. Dealing with link order files is a bit cumbersome though: I can’t keep both, say “foo” and “foo.cfi” next to each other in link order, because if both exist, the linker reorders the jump table next to the real function. This is not what we want when the goal is to get rid
2018 May 01
0
llvm-dev Digest, Vol 167, Issue 3
.../plain; charset="utf-8"
>
>
>
> > On Apr 30, 2018, at 5:43 PM, Vlad Tsyrklevich <vlad at tsyrklevich.net>
> wrote:
> >
> > Hi Dmitry, the direct call patch seems like a good start; however, by
> falling through to the F->replaceUsesExceptBlockAddr(FDecl) at the bottom
> of LowerTypeTestsModule::importFunction() I believe it will replace all
> uses of a function (for a definition outside the TU it's defined in) with
> the direct function reference instead of just direct calls.
>
> You’re right, it was meant to bail after direct c...