[LLVMdev] Problem with missing support for non-zero contant initializers.

Anton Korobeynikov asl at math.spbu.ru
Mon Aug 20 01:35:29 PDT 2007


Hello, Tomas.

> So far I have only been using LLVM at the user level. And I'm not sure
> how this problem should be solved. It would be really nice if there
> was a way to specify something like:
> *******************************************************************
> @_D9arrayinit5tableG32f = global [32 x float] [ 32 x float 0x7FF8000000000000 ]
> *******************************************************************
Are there any notion of static construction in D? If yes, you can just
emit code to init array in runtime before main() is called (for example,
llvm-gcc currently does so).

-- 
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.





More information about the llvm-dev mailing list