Displaying 2 results from an estimated 2 matches for "printvalueload".
2009 Apr 03
0
[LLVMdev] Patch: MSIL backend global pointers initialization
...constant)){
> + const ConstantExpr *CE =
> dyn_cast<ConstantExpr>(I->constant);
> + printConstantExpr(CE);
> + ty = CE->getType();
> + } else {
> + const Function * F = dyn_cast<Function>(I->constant);
> + printValueLoad(F);
> + ty = F->getType();
> + }
You don't need to check stuff twice here.
1. Use dyn_cast<ConstantExpr> instead of isa + dyn_cast
2. In the "else" path you need to be sure, that I->constant is indeed
Function. Use cast, not dyn_cast.
PS: Also: &quo...
2009 Apr 03
6
[LLVMdev] Patch: MSIL backend global pointers initialization
Anton Korobeynikov wrote:
> Hi, Artur
>
>
>> I'm working on that backend now, so probably I'll send some more patches
>> soon. I'd be grateful if you could give me some suggestions how to add
>> some test for that backend to the test-suite. On Linux the output code
>> could be run on Mono and compared with outputs for other backends but
>>