[PATCH] D33353: [OpenCL] An error shall occur if any scalar operand has greater rank than the type of the vector element

Egor Churaev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 29 05:25:31 PDT 2017


echuraev added a comment.

Hi all,

I tried to reproduce this problem but I'm not able to do it...
I tried to do it in two different ways:

1. I tried to build llvm by the following steps:

1.1. Checkout llvm and clang:

  svn co https://echuraev@llvm.org/svn/llvm-project/llvm/trunk llvm
  svn co https://echuraev@llvm.org/svn/llvm-project/cfe/trunk llvm/tools/clang

1.2. Applied patch by the following line: `arc patch D33353`
1.3. Build llvm:

  mkdir build
  
  cd build
  
  cmake -G "Unix Makefiles" ../llvm
  
  make -j 8

1.4. Run tests: `make check-clang`
Also, I tried to run `make check-all`

1.5. As a result: all tests were passed.

2. I tried to build llvm with ninja.

2.1. This step is the same with 1.1. In the next steps I used commands from the following log: http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/8741
2.2. Go to llvm dir and update svn to the target revision: `cd llvm && svn update --non-interactive --no-auth-cache --revision 303986`
2.3. Go to clang dif and update svn to the target revision: `cd tools/clang/ && svn update --non-interactive --no-auth-cache --revision 303986`
2.4. Create extra dir and update svn: `mkdir tools/extra && cd tools/extra && svn update --non-interactive --no-auth-cache --revision 303986`
2.5. Create compiler-rt dir and update svn: `cd ../../../../projects && mkdir compiler-rt && cd compiler-rt && svn update --non-interactive --no-auth-cache --revision 303986`
2.6. Generate build ninja files:

  cd ../../../
  mkdir ninja_build && cd ninja_build
  cmake -G Ninja ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=True '-DLLVM_LIT_ARGS='"'"'-v'"'"'' -DCMAKE_INSTALL_PREFIX=../stage1.install -DLLVM_ENABLE_ASSERTIONS=ON

2.7. Run build by the following command: `ninja`
2.8. Run tests: `ninja check-all`
2.9. And also all tests were passed.

Could you please help me? How can I reproduce this issue?

Thank you in advance!


https://reviews.llvm.org/D33353





More information about the cfe-commits mailing list