llvm / clangir

A new (MLIR based) high-level IR for clang.
https://clangir.org
Other
383 stars 100 forks source link

`emit-cir-flat` is a bit broken #749

Open bcardosolopes opened 3 months ago

bcardosolopes commented 3 months ago

Driver isn't doing the proper job of giving precedence to the last specified one (and the message is also pretty broken).

clang++ -std=c++20 -target arm64-apple-macosx14.0.0 -Wno-unused-value -fexceptions -c lambda.cpp -Xclang -fclangir -Xclang -emit-cir -o lambda.cir -Xclang -emit-cir-flat
error: '-emit-cir' action ignored; '-emit-cir-flat' action specified previously
bcardosolopes commented 3 months ago

cc: @gitoleg

gitoleg commented 3 months ago

wow! I will take a look!