similar to: LLVM and Pthreads

Displaying 20 results from an estimated 10000 matches similar to: "LLVM and Pthreads"

2019 Aug 31
3
Get constants of undefined types in IR
Hello all, I would like to obtain a constant that is initialized with a value of type cpu_set_t, a type which is defined by Pthreads. The problem is that a variable of this type cannot be cast to an int value, even in C source code. I tried get methods from Constant or ConstantInt classes, but with no result. How can I obtain such constant object in IR? Thank you, Iulia -------------- next
2017 Jun 05
2
Question
Hello, 1. Can you please tell me how can I find the type of my Intel Xeon?I see in LLVM code that Intel Xeon processors can be of type "core2", "penryn", "westmere", "skylake". 2. I also see that "skylake" can be a type and a subtype as well.How can I find out the subtype of my architecture? Looking forward for you answer. Thank you.Iulia On
2017 Jun 05
2
Question
Can you also please tell me how can I find out the ABI (application binary interface)? Thanks,Iulia On Monday, June 5, 2017 8:58 PM, Bruce Hoult <bruce at hoult.org> wrote: grep name /proc/cpuinfo Then look up the model number in https://en.wikipedia.org/wiki/List_of_Intel_Xeon_microprocessors On Mon, Jun 5, 2017 at 8:41 PM, Iulia Stirb via llvm-dev <llvm-dev at
2019 Sep 03
2
Get constants of undefined types in IR
Hi Tim, My mistake not including the llvm-dev, excuse me. affinityElement.__bits[0] worked fine for me, thank you. I am new in using the API for Constants and I am facing the error "incomplete type is not allowed" on the last last of below code: Type * ET = IntegerType::getInt64Ty(I.getContext()); unsigned long size = cpuAffinityVector.size(); ArrayType * AT = ArrayType::get(ET,size);
2017 Jun 06
2
Question
Thank you. So the ABI in llvm will be "gnu" for all Linux distributions? On Monday, June 5, 2017 11:39 PM, Tim Northover <t.p.northover at gmail.com> wrote: On 5 June 2017 at 11:54, Iulia Stirb <iulia_s24 at yahoo.com> wrote: > Can you also please tell me how can I find out the ABI (application binary > interface)? Could you send your messages with a smaller
2017 Jun 04
2
Question
Hello, Could someone please answer the following question: Does LLVM support code generation for Intel Processors? Which Intel processors are supported? I am interested especially in Intel Xeon Processor, but you can give me information about the others as well. Thank you,Iulia -------------- next part -------------- An HTML attachment was scrubbed... URL:
2015 Dec 16
2
LLVM and parallelization
Hi, I know LLVM provides thread-level automatic parallel support using OpenMP (see  http://blog.llvm.org/2015/05/openmp-support_22.html), but it is not clear for me which of the following is correct? 1. Clang inserts in the source code OpenMP compiler directives, so, it auto-parallelizes the serial source code provided as input or2. Clang can compile manually written parallel source code that uses
2017 Jun 08
2
Question
I want to cross-compile using clang and I have to specify the following triple: <arch><sub>-<vendor>-<sys>-<abi>I know that sub-architectures ("sub" in the triple) for x86_64 Intel Xeon processors could be v2 for ivy bridge or v3 for haswell or v4 etc. Could you please answer: which version of sub-architecture is considered sandy bridge for Intel® Xeon®
2019 Sep 18
2
How to debug passes
Iulia, You need to check the contents of the hello.ll (or hello.bc) file rather than the input *.c file - ultimately that's what opt consumes. Try compiling without any optimisations: clang -O0 -emit-llvm -S hello.c -c -o hello.ll -Andrzej On 18/09/2019 11:34, iulia_s24 wrote: > Hi, > > Actually I copy-pasted step 5 from the article in which I found the > solution, in the text
2015 Dec 16
2
Instruction scheduling done before or after register allocation
Hi, I have read the steps of code generation from here: The LLVM Target-Independent Code Generator — LLVM 3.8 documentation |   | |   | |   |   |   |   |   | | The LLVM Target-Independent Code Generator — LLVM 3...Instruction Selection Instruction Selection is the process of translating LLVM code presented to thecode generator into target-specific machine instructions. | | | | View on llvm.org
2019 Sep 10
3
Question about using multiple functions in a Function pass
Hi all, I would want to know if from the runOnFunction method of a Function pass, other functions in IR, except for the one received as parameter, can be obtained as well, from a call instruction, as follows: Function F = dyn_cast<Function>(callInst); Or do I need a Module pass to work in IR with multiple functions from input source code? If so, it is accepted to have O(n^3) complexity in a
2019 Sep 16
2
How to debug passes
Hi, Could you please confirm the following steps for debugging a pass? 1. copy your pass into llvm/lib/Transforms/Hello/Hello.cpp 2. name you pass Hello 3. insert debug messages like:     errs() << "Vis­iting func­tion " << F.get­Name(); 4. get LLVM bitcode:    clang -O3 -emit-llvm hello.c -c -o hello.bc5. disassemble the bitcode:     llvm-dis hel­lo.bc 6. run the pass on
2017 Jun 05
2
Build problems
Hello, Could someone please tell me why LLVM and clang downloaded from here: svn co http://llvm.org/svn/llvm-project/llvm/trunk llvmsvn co http://llvm.org/svn/llvm-project/cfe/trunk clang and generated using cmake: cmake -G "Visual Studio 15 2017" ../llvm does not compile in Visual Studio? I am using Batch Build in Visual Studio and I have selected only ALL_BUILD project to build as
2019 Sep 18
2
How to debug passes
> opt -load lib­dum­my­pass.so -dum­my­pass hel­lo.ll Looks like you are loading a shared library different from "LLVMHello.so". did you change the name of the compilation unit from "Hello.cpp" into "dummypass.cpp"? (As asked previously by Andrzej) did you register the dummy pass? > RegisterPass<DummyPass> X("dummypass",
2017 Sep 27
1
Build error
Hello, I am building LLVM with ninja on Linux environment and I continue to have the error below. I am thinking that the cause might be my PC not having sufficient RAM memory. In this sense, I extended my swap memory with a swap file (90GB), but it didn't solved the problem. Should I add more physical RAM memory to my PC, or is there any software based solution I can try first? Thank you and
2013 Apr 17
1
pthreads for mini-os ?
Is there any support for x86_64 pthreads for mini-OS ? Does the current newlib contains a functional implementation of pthreads ? -- Karim Allah Ahmed. LinkedIn <http://eg.linkedin.com/pub/karim-allah-ahmed/13/829/550/> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
2003 Dec 23
0
[LLVMdev] pthread?
Try llvmgcc pthread.c -o pthread.ll -pthread You have to link in the pthreads library, and I believe -pthread is all you need on a redhat 9 box. Kevin > -----Original Message----- > From: llvmdev-admin at cs.uiuc.edu [mailto:llvmdev-admin at cs.uiuc.edu] On > Behalf Of yue > Sent: Tuesday, December 23, 2003 11:43 PM > To: llvmdev at cs.uiuc.edu > Subject: [LLVMdev] pthread?
2009 Jul 08
6
recently moved to 1.1.25, no wine-pthread command
I have done some reading and gather than wine-pthread was dropped somewhere around 1.1.19. Problem I have is that I have an application (newsleecher) which effectively never starts up (gave it 10 minutes at one point, used 100% cpu the whole time) with strait wine command on the older wine version, I think 1.0.something, came with ubuntu 8.04 in one of the unsupported repositories. It starts up
2003 Dec 23
4
[LLVMdev] pthread?
hi, I compile a pthread program using llvmgcc, but when i run pthread.ll, it show: ------------------ [yue at RH9 test]$ llvmgcc pthread.c -o pthread.ll [yue at RH9 test]$ ls pthread pthread.c pthread.ll pthread.ll.bc [yue at RH9 test]$ ./pthread.ll Creating thread 0 WARNING: Cannot resolve fn 'pthread_create' using a dummy noop function instead! ERROR; return code from
2007 Apr 15
1
pthreads with Darwine Xcode template? (or Wine Windows message pump + sockets + threads sample)
I am trying to run the following pthread example with the Darwine Xcode template: http://www.llnl.gov/computing/tutorials/pthreads/samples/hello.c from http://www.llnl.gov/computing/tutorials/pthreads/ Example Code - Pthread Creation and Termination But the code inside PrintHello does not appear to execute. Can you help me? What I really need is a way to handle multiple client sockets from code