Re: How to get the data dependency of GIMPLE variables?

2020-06-14 Thread Shuai Wang via Gcc
Dear Marc, Thank you very much! Just another quick question.. Can I iterate the operands of a GIMPLE statement, like how I iterate a LLVM instruction in the following way? Instruction* instr; for (size_t i=0; i< instr->getNumOperands();i++) { instr->getOperand(i)) } Sorry fo

Re: How to get the data dependency of GIMPLE variables?

2020-06-14 Thread Marc Glisse
On Mon, 15 Jun 2020, Shuai Wang via Gcc wrote: I am trying to analyze the following gimple statements, where the data dependency of _23 is a tree, whose leave nodes are three constant values {13, 4, 14}. Could anyone shed some light on how such a backward traversal can be implemented? Given _22

How to get the data dependency of GIMPLE variables?

2020-06-14 Thread Shuai Wang via Gcc
Hello, I am trying to analyze the following gimple statements, where the data dependency of _23 is a tree, whose leave nodes are three constant values {13, 4, 14}. Could anyone shed some light on how such a backward traversal can be implemented? Given _22 used in the last assignment, I have no id

gcc-11-20200614 is now available

2020-06-14 Thread GCC Administrator via Gcc
Snapshot gcc-11-20200614 is now available on https://gcc.gnu.org/pub/gcc/snapshots/11-20200614/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 11 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

Re: Is it very hard to implement Zero-overhead deterministic exceptions: Throwing values??

2020-06-14 Thread Andrew Pinski via Gcc
On Sun, Jun 14, 2020 at 2:27 PM Andi Kleen via Gcc wrote: > > sotrdg sotrdg via Gcc writes: > > > http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0709r0.pdf > > > > I really want this feature. How, it looks like this requires changes > > on RTL, gimple and C++ front-end. Is that very hard to

Re: Is it very hard to implement Zero-overhead deterministic exceptions: Throwing values??

2020-06-14 Thread Andi Kleen via Gcc
sotrdg sotrdg via Gcc writes: > http://open-std.org/JTC1/SC22/WG21/docs/papers/2018/p0709r0.pdf > > I really want this feature. How, it looks like this requires changes > on RTL, gimple and C++ front-end. Is that very hard to implement it? If you're asking about setjmp/longjmp exceptions, you ca

Write plugin for `sanopt` or `asan0` passes

2020-06-14 Thread Shuai Wang via Gcc
Hello, I am writing to inquire the procedure (or any tutorial) to write plugins for the `sanopt` pass. Basically I am doing some analysis of ASan/UBSan checks. I use the following command to dump all passes in IR format: gcc -fdump-tree-all -fsanitize=address test.c To me, I think the following