search for: getorcreatellvmfunct

Displaying 7 results from an estimated 7 matches for "getorcreatellvmfunct".

2018 Jun 26
2
How to force an unused function declaration in clang
...any other way to force the declaration of "unused" function declarations with clang. I have hacked in clang 6.0.0 in tools/clang/lib/CodeGen/CodeGenModule.cpp file. I changed in EmitGlobal function to detect if the function has "used" attribute and then if it has then use "GetOrCreateLLVMFunction" this to create the function declaration. However, this hack fails in some other cases. Therefore I am looking for a proper way to do this. Regards, Soham Sinha PhD Student, Department of Computer Science Boston University -------------- next part -------------- An HTML attachment was scru...
2018 Jun 26
2
How to force an unused function declaration in clang
...of > "unused" function declarations with clang. > > > > I have hacked in clang 6.0.0 in > tools/clang/lib/CodeGen/CodeGenModule.cpp file. I changed in EmitGlobal > function to detect if the function has "used" attribute and then if it has > then use "GetOrCreateLLVMFunction" this to create the function declaration. > However, this hack fails in some other cases. Therefore I am looking for a > proper way to do this. > > > > Regards, > > Soham Sinha > > PhD Student, Department of Computer Science > > Boston University > &gt...
2018 Jun 26
2
How to force an unused function declaration in clang
...> > > >> > I have hacked in clang 6.0.0 in > >> > tools/clang/lib/CodeGen/CodeGenModule.cpp file. I changed in > EmitGlobal > >> > function to detect if the function has "used" attribute and then if > it has > >> > then use "GetOrCreateLLVMFunction" this to create the function > declaration. > >> > However, this hack fails in some other cases. Therefore I am looking > for a > >> > proper way to do this. > >> > > >> > Regards, > >> > Soham Sinha > >> > PhD St...
2011 Jun 30
0
[LLVMdev] inefficiencies in ConstantUniqueMap ?
...()* @f }, align 8 > > directly. I now get: %struct.T = type { i8* } @t = global %struct.T { i8* bitcast (void ()* @f to i8*) }, align 8 declare void @f() (I lowered the incomplete function type all the way to void, instead of to void(), only because that made it simpler for CodeGenModule::GetOrCreateLLVMFunction() to tell the difference between a proper function type and a placeholder type. There's probably a better way of doing this.) > Basically, if we "need" a type and don't have it, just lower it directly to void instead of 'opaque'. I'm doing this for: - incomple...
2011 Jun 27
2
[LLVMdev] inefficiencies in ConstantUniqueMap ?
On Jun 25, 2011, at 11:59 AM, Jay Foad wrote: > On 25 June 2011 13:00, Duncan Sands <baldrick at free.fr> wrote: >>> 3. Clang/dragonegg need to adapt to the new API (help appreciated!) >> >> what needs to be done exactly? > > Background info: http://www.nondot.org/sabre/LLVMNotes/TypeSystemRewrite.txt > > As I understand it, PATypeHolder, OpaqueType
2011 Jun 30
1
[LLVMdev] inefficiencies in ConstantUniqueMap ?
...I now get: > > %struct.T = type { i8* } > @t = global %struct.T { i8* bitcast (void ()* @f to i8*) }, align 8 > declare void @f() > > (I lowered the incomplete function type all the way to void, instead > of to void(), only because that made it simpler for > CodeGenModule::GetOrCreateLLVMFunction() to tell the difference > between a proper function type and a placeholder type. There's > probably a better way of doing this.) This makes perfect sense to me. >> Basically, if we "need" a type and don't have it, just lower it directly to void instead of 'op...
2014 Oct 18
3
[LLVMdev] Performance regression on ARM
Hi Chandler, That's embarrassing how weird this part of clang is. I have a provisional patch which fixes the problem but underlines clang's problems. I will submit it tonight for comments. суббота, 18 октября 2014 г. пользователь Chandler Carruth написал: > > On Fri, Oct 17, 2014 at 7:51 AM, Anton Korobeynikov < > anton at korobeynikov.info >