I ran the following code to get the .bc file for my cpp source code
clang -O0 -emit-llvm -c your_source_code.c -o your_code.bc
however when i try to run analysis pass to study memory dependency analysis as shown below
opt-18 -passes='aa,memdep' your_code.bc
i keep getting error that aa/memdep are not found, even though they are present in list of valid pass in OPT.
New contributor
tapas1994 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.