Adding new runtime library

2009-05-22 Thread Petros Panayi
Hi, I try to write an optimization pass which at some point will make a call to a new runtime library. To achieve this I need to write my own runtime library i.e something like libgomp but much simpler for now. I will like to know if there is a tutorial of any documentation on how to do this?

Adding a new Struct (RECORD_TYPE)

2009-06-10 Thread Petros Panayi
Hi, I try to create and populate a new struct into my the generated code. Something like: struct ddm_temaplate{ int loop_interations; int ddm_thread_num; }; What I have up to now is the following: static tree build_ddm_template_struct() { tree type = lang_hooks.types.make_type(RECORD_