[cfe-users] clang and mcmodel=medium

2018-04-30 Thread Jost, Gabriele (ARC-TNC)[CSRA, LLC] via cfe-users
Hi, I have some benchmarks where I have to use mcmodel=medium, but clang does not seem to have a flag corresponding to this. I was wondering if there is recommended way around this. Greetings, Gabriele ___ cfe-users mailing list cfe-users@lists.llvm.org

[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] building clang for target offload

2018-04-30 Thread Jost, Gabriele (ARC-TNC)[CSRA, LLC] via cfe-users
Hello, I am trying to build clang with GPU support, in particular with support for OpenMP target offload. I want to build for a Xeon+Nvidia GPU. I did this: git clone https://github.com/clang-ykt/openmp.git and built the OpenMP libomp.so Then I try this: git clone https://github.com/clang-ykt/libo

[cfe-users] building clang for target off

2018-04-30 Thread Jost, Gabriele (ARC-TNC)[CSRA, LLC] via cfe-users
Hello, I am trying to build clang with GPU support, in particular with support for OpenMP target offload. I want to build for a Xeon+Nvidia GPU. I did this: git clone https://github.com/clang-ykt/openmp.git and built the OpenMP libomp.so Then I try this: git clone https://github.com/clang-ykt/libo

[cfe-users] Getting type from vardecl

2018-04-30 Thread Ryan Bartling via cfe-users
Hello, I'm writing my first clang-tidy check. Basically I'm working on a project where I'm forced to use systems hungarian notation. I was trying to get the applicable typedef from a vardecl (e.g. uin32_t) I've started off with a simple matcher: void AfrhungarianvariablesCheck::registerMatchers(