Displaying 3 results from an estimated 3 matches for "funcpass".
2006 May 01
2
[LLVMdev] How to link the right libraries?
...runOnFunction(Function &F) {
std::cerr << "Function name: " << F.getName() << "\n";
return false;
}
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
}
};
RegisterOpt<FuncFoo> X("funcPass", "Hello World Pass");
}
When I call:
$> opt -load ../../../../llvm/Debug/lib/LLVMTest.so -funcPass < hello.bc >
/dev/null
It works fine; when I try the machineFunctionPass class, it goes like
this:
$> opt -load ../../../../llvm/Debug/lib/LLVMTest.so -allocpty < he...
2006 May 01
0
[LLVMdev] How to link the right libraries?
...{
> std::cerr << "Function name: " << F.getName() << "\n";
> return false;
> }
> virtual void getAnalysisUsage(AnalysisUsage &AU) const {
> AU.setPreservesAll();
> }
> };
> RegisterOpt<FuncFoo> X("funcPass", "Hello World Pass");
> }
>
> When I call:
>
> $> opt -load ../../../../llvm/Debug/lib/LLVMTest.so -funcPass < hello.bc >
> /dev/null
>
> It works fine; when I try the machineFunctionPass class, it goes like
> this:
>
> $> opt -load ../.....
2016 Jun 15
2
[RFC] LLVM Coroutines
Hi Sanjoy,
>> I'm not familiar with fiber-type APIs, but I assume fiber_fork is like
>> setjmp, in that it can "return twice"?
Yes, user-mode stack switching API are somewhat similar to setjmp. Here are
links to a doc page and implementation, just in case you are curious:
http://www.boost.org/doc/libs/1_59_0/libs/context/doc/html/context/context.html