Bruno Cardoso Lopes
Bruno Cardoso Lopes
There are many current issues with switch statements, mostly regarding all weird supported combinations. This issue is aggregating all of them in order to facilitate folks to coordinate and execute....
These tests are failing because the insertion point is restored by an InsertionGuard in `buildSwitchBody()`. I suggest revising that part after #528 is merged to avoid conflict. https://github.com/llvm/clangir/blob/3da10fafac66ff125fb59c602e41ad4b4f5cb382/clang/lib/CIR/CodeGen/CIRGenStmt.cpp#L972-L978 _Originally posted...
We could then have an interface with getters and setters for attributes that better matches C/C++ translation units, among other nice things! _Originally posted by @sitio-couto in https://github.com/llvm/clangir/pull/643#discussion_r1621537202_
ClangIR and Vanilla LLVM have the following diff in the generated IR: ``` // LLVM-LABEL: @literals -// LLVM: global %struct.anon { +// LLVM: global %struct.anon.1 { // LLVM: [10 x...
There is a small difference between LLVM-IR code generated by ClangIR and vanilla LLVM. ClangIR generates (`... -fclangir -emit-llvm ...`): ``` @_ZN6compat1bE = weak_odr global i32 2 @compat_use_before_redecl = global...
It would be nice in the future to have a `cir.initlist` thing - a higher level representation for this (we even have a specialized AST node). Right now it would...
_Originally posted by @bcardosolopes in https://github.com/llvm/clangir/pull/848#pullrequestreview-2313855228_