1 year ago

#381887

test-img

Afif Ishamsyah

In LLVM, how do you get the all the instructions that is not inside the starting part of loop?

I have a code

#pragma omp for
for (i = 0; i < length; i++)
{
   A[i] = A[i] * B[i];
}

After I compile it to LLVM IR, I need to get the instructions only that is not inside the "for" part (incremental operation), because I only want to get the instructions that is related to A[i] = A[i] * B[i]. How do I do that?

c++

clang

llvm

llvm-ir

0 Answers

Your Answer

Accepted video resources