[cfe-users] How to handle debug information not in source/How do I handle the error 'inlinable function call in a function with debug info must have a !dbg location'

2018-04-18 Thread Levo DeLellis via cfe-users
I'm having an issue with the error "inlinable function call in a function with debug info must have a !dbg location" My language will automatically call a destructor for you. LLVM is forcing me to use give it debug information. I try to with DILocation however scope is mandatory field. However sin

[cfe-users] Question about atomic variables of unsupported bitsize

2018-04-30 Thread Levo DeLellis via cfe-users
I constantly feel like I don't have much experience using LLVM but I hope this isn't a foolish question. I had a thought. If I have a struct with three 8bit (or 16bit) variables a, b and c and I want to do an atomic write to one variable. What happens if the target backend doesn't support atomic w

[cfe-users] Is there a wiki?

2018-05-09 Thread Levo DeLellis via cfe-users
Is there a wiki or some place users can add/modify information to help eachother? For example, I'm looking at how I should figure out if a class inherit another class. This page gives me hints https://llvm.org/docs/HowToSetUpLLVMStyleRTTI.html however I'm not sure if I need RTTI, if I will use vta

[cfe-users] Improve build speeds?

2019-03-15 Thread Levo DeLellis via cfe-users
I have implemented a language and I'm planning to release it soon. One of my goals is to have good build speeds so I can use it for web development. I noticed building ll files is faster than building C. However I noticed building a simple ll file can take 100+milliseconds on my desktop which isn't

[cfe-users] How to not step into function calls? (Example inside)

2019-04-07 Thread Levo DeLellis via cfe-users
In my language malloc and memset are invisible. I tried using lldb to set breakpoints/step into/step over/step out however I get the following message on windows > Process 10552 stopped > * thread #1, stop reason = step over failed (Could not create return address breakpoint.) Not a big deal. In

[cfe-users] Can I do a conditional jump without variables using phi?

2019-05-17 Thread Levo DeLellis via cfe-users
Lets take this C code. Obviously, it will always print out normal value int main() { for(int i=0; i<2; i++) { if(i>4) put("High value") else put("Normal value") } return 0; } Lets say I want the first time it runs this loop to go through the nor