2 #include <llvm/Support/CommandLine.h>
11 static llvm::cl::opt
<string
> InputFilename(llvm::cl::Positional
,
12 llvm::cl::Required
, llvm::cl::desc("<input file>"));
13 static llvm::cl::opt
<bool> AutoDetect("autodetect",
14 llvm::cl::desc("Autodetect scops"));
16 int main(int argc
, char *argv
[])
18 isl_ctx
*ctx
= isl_ctx_alloc();
21 llvm::cl::ParseCommandLineOptions(argc
, argv
);
23 scop
= pet_scop_extract_from_C_source(ctx
, InputFilename
.c_str(), NULL
,
27 pet_scop_emit(stdout
, scop
);