Displaying 20 results from an estimated 5000 matches similar to: "Get timestamp and processor ID in the IR"
2015 Nov 19
2
Get timestamp and processor ID in the IR
Hi Hal,
Thanks for the pointer. Is it possible to get the processor ID on X86
architecture? There is a library call in linux, sched_getcpu(), to the ID.
Also, is it possible to get the program counter in the IR?
Best,
Zhi
On Thu, Nov 19, 2015 at 1:33 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> Hi Zhi,
>
> There is no standard (architecture-independent) way to get the processor
2015 Nov 19
2
Get timestamp and processor ID in the IR
Say if we have 8 cores, I want to get which core is running the current
program. Thanks.
On Thu, Nov 19, 2015 at 3:37 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> ----- Original Message -----
> > From: "zhi chen" <zchenhn at gmail.com>
> > To: "Hal Finkel" <hfinkel at anl.gov>
> > Cc: llvm-dev at lists.llvm.org
> > Sent: Thursday,
2008 Dec 23
2
outging ---asterisk -bug
Hi everyone,
when i use the automated dial out,I found that once the zap answerd,the
contex will be exectued, but i don't hope do it ,i hope when extern phone
answered ,then ,the context will be exectued.
Anyone can help me solve the problem!
the call file is:
Channel: Zap/g0/15015895665
Context: myivr
RetryTime: 60
MaxRetries: 2
Waittime: 60
Extension: 808
Priority: 1
Callerid:
2011 Dec 06
5
Argument validation within functions
Hi,
I just started with writing functions in R and so some questions popped up.
I provide some values as argument to my function such as:
function(a,b,c){}
Now i want that the function first checks if the arguments are valid for the function. E.g argument "a" has to be a number in the range 0-1. How can that easily done?
So far I have:
a <- as.numeric(a)
if(0 <= a &&
2010 Mar 30
3
Environment settings not functional
Hi,
I''ve got some problems with setting up environments. On the master:
[main]
[...]
manifestdir = /etc/puppet/manifests
modulepath = /etc/puppet/modules
[...]
environments = production,staging
[production]
manifestdir = /etc/puppet/manifests
modulepath = /etc/puppet/modules
[staging]
manifestdir = /opt/puppet-staging/manifests
modulepath = /opt/puppet-staging/modules
[puppetmasterd]
2015 Dec 01
10
[RFC] Intrinsic naming convention (words with dots)
Hi everyone,
We seem to have allowed our documented target-independent intrinsics to acquire a somewhat-haphazard naming system, and I think we should standardize on one convention. All of the intrinsics have 'llvm.' as a prefix, and some also have some additional prefix 'llvm.dbg.', 'llvm.eh.', 'llvm.experimental.', etc., but after that we lose consistency. When
2015 May 05
3
Failed running extprograms execute via socket - fatal recv(MSG_PEEK) failed disconnected
E.B. schreef op 5-5-2015 om 9:40:
> Sorrys. I decided to "make clean" and do new "./configure" "make" and "make
> install" for dovecot first, then pigeonhole to make sure nothing is off. After
> I do that I get same original error:
>
> dovecot: script: Fatal: recv(MSG_PEEK) failed: disconnected
>
> I went to go verifying in
2008 Jun 15
4
[LLVMdev] API to retrieve current time.
What's the API to retrieve current time of day in llc?
I need to use this to generate an unique number every time llc runs.
TIA
- Sanjiv
2012 Jul 01
7
btrfs_print_tree?
HI,
Do anyone know where btrfs_print_tree is invoked? thanks.
--
Regards,
Zhi Yong Wu
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
2015 May 14
4
[LLVMdev] how to disable sse and avx
Thanks, Mats. Actually, it is able to generate the assembly now if I use
the follow command: clang++ -O3 -S -mllvm --x86-asm-syntax=intel -mno-sse
-o test_nosee.s test.cpp
However, when I use g++ -O3 -o test_nosse test_nosse.s -lm to generate the
executable, if gives me the following errors:
Error: too many memory references for `sub'
Error: too many memory references for `mov'
Error:
2015 May 04
2
[LLVMdev] Load value and broadcast in LLVM
Hi Shahid,
Thank you so much for your response. You suggested approach is what I am
right now using. However, it seems that the overhead is a little bit high
because we are introducing two more instructions. I was wondering if there
was a cheaper way to do it.
Best,
Zhi
On Mon, May 4, 2015 at 2:12 AM, Shahid, Asghar-ahmad <
Asghar-ahmad.Shahid at amd.com> wrote:
> Hi Zhi,
>
>
2015 Apr 18
2
[LLVMdev] how can I create an SSE instrinsics sqrt?
Thanks, Shahid. It is fixed now.
On Fri, Apr 17, 2015 at 8:50 PM, Shahid, Asghar-ahmad <
Asghar-ahmad.Shahid at amd.com> wrote:
> Hi zhi,
>
>
>
> You have to also pass the value type to getDecalaration() API such as
>
>
>
> Value* sqrtv = Intrinsic::getDeclaration(M, Intrinsic::x86_sse2_sqrt_pd,
> v->getType());
>
>
>
> Regards,
>
>
2015 May 04
4
[LLVMdev] Load value and broadcast in LLVM
Is it possible to load a value into a vector register and broadcast it in
LLVM?
For example, for the following address %x
%x = getelementptr inbounds %struct._Ray* %ray, i32 0, i32 0, i32 0
instead of loading the value at %x into a scalar register %0:
%0 = load double* %x, align 4, !tbaa !0
I want to load it into a <2 x double> vector register %1 and make both of
the two elements in %1
2013 Dec 12
2
Re: [PATCH] sysprep: handle distro specific sysv scripts
On Thursday 12 December 2013 14:49:36 Olaf Hering wrote:
> On Thu, Dec 12, Pino Toscano wrote:
> > What do you think?
>
> I think that your Should-Start handling is broken. Required means the
> given file can not properly work without the listed servers, insserv
> will error out. Should means it can very well work without them if
> they are not present or enabled.
2015 Apr 17
2
[LLVMdev] how to use "new instruction()"
It seems that the problem was because I used builder.CreateFAdd to create
a <2 x double> vectortype FADD instruction. It works if I use it to create
the scalar version FADD. I want to have an instruction like: *%2 = fadd <2
x double> undef, <2 x double> undef. *The following is the way I used to
create the vectorized FADD instruction:
//pInst is a double type instruction
2015 Apr 17
2
[LLVMdev] how to use "new instruction()"
I got it. Thanks, Nick. So, it is back to the previous problem. If I have
the following instruction:
%3 = fadd double %1, double %2
I want to change it into
%6 = fadd <2 x double> %4, double %5
where %4 = <double %1, double %1>, %5 = <double %2, double %2>, how can I
do this?
Thanks,
Best
On Fri, Apr 17, 2015 at 1:56 AM, Nick Lewycky <nicholas at mxc.ca> wrote:
>
2016 Jan 20
2
error of using GATHER intrinsic
Got it. Thanks. I will try it with the trunk version.
On Wed, Jan 20, 2016 at 1:36 PM, Tim Northover <t.p.northover at gmail.com>
wrote:
> Hi Zhi,
> On 20 January 2016 at 13:33, zhi chen <zchenhn at gmail.com> wrote:
> > Thanks for your response. The attached is the .bc file after my pass. I
> > could generate the assembly with -mcpu=skx but not with
2016 Jan 23
3
how to force llvm generate gather intrinsic
Thanks for your response, Sanjay. I know there are intrinsics available in
C/C++. But the problem is that I want to instrument my code at the IR level
and generate those instructions. I don't want to touch the source code.
Best,
Zhi
On Fri, Jan 22, 2016 at 4:54 PM, Sanjay Patel <spatel at rotateright.com>
wrote:
> I was just looking at the related masked load/store operations, and
2015 Apr 21
2
[LLVMdev] what's the best way to insert an instruction after the current instruction
Does the insert point also mean inserting before the instruction?
On Tue, Apr 21, 2015 at 3:36 PM, Daniel Berlin <dberlin at dberlin.org> wrote:
> IRBuilder takes an insertion point.
> Use it?
>
>
> On Tue, Apr 21, 2015 at 3:17 PM, zhi chen <zchenhn at gmail.com> wrote:
> > The current instruction is:
> >
> > Instruction *pInst;
> >
> >
2016 Jan 18
3
error of using GATHER intrinsic
Hi all,
I am using gather intrinsic to load a value from the same address twice at
the same time. Basically, I used my own pass to changed the following
bitcode:
%a = getelementptr inbounds [100 x double], [100 x double]* %A, i32, 0, i64
0
%1 = load double, double* a, align
to:
%a = getelementptr inbounds [100 x double], [100 x double]* %A, i32, 0, i64
0
%splat.a = insertelement <2 x