summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/ms_this.cpp
AgeCommit message (Collapse)Author
2023-05-04MS inline asm: remove obsolete code adding AOK_SizeDirective (e.g. dword ptr)Fangrui Song
The AOK_SizeDirective part from 5b37c181291210bedfbb7a6af5d51229f3652ef0 (2014-08) seems unneeded nowadays (the root cause has likely been fixed elsewhere). The part abuses that `call dword ptr foo` assembles the same way as `call foo` in Intel syntax, which is going to be fixed (changed) by D149579. The generated object files for CodeGen/ms-inline-asm{,-functions,-variables,-static-variable}.c and CodeGenCXX/ms-inline-asm-fields.cpp are unchanged (-mno-incremental-linker-compatible) with just this patch. When D149579 is subsequently applied, the FIXME part of `kptr` in CodeGen/ms-inline-asm-functions.c will be fixed. Differential Revision: https://reviews.llvm.org/D149695
2022-10-07[CodeGen] Convert tests to opaque pointers (NFC)Nikita Popov
Conversion performed using the script at: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only tests where no manual fixup was required.
2022-04-07[OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC)Nikita Popov
This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115
2018-03-16[MS] Don't escape MS C++ names with \01Reid Kleckner
It is not needed after LLVM r327734. Now it will be easier to copy-paste IR symbol names from Clang. llvm-svn: 327738
2018-02-23Bring r325915 back.Rafael Espindola
The tests that failed on a windows host have been fixed. Original message: Start setting dso_local for COFF. With this there are still some GVs where we don't set dso_local because setGVProperties is never called. I intend to fix that in followup commits. This is just the bare minimum to teach shouldAssumeDSOLocal what it should do for COFF. llvm-svn: 325940
2018-02-23Revert "Start setting dso_local for COFF."Rafael Espindola
This reverts commit r325915. It will take some time to fix the failures on a windows host. llvm-svn: 325929
2018-02-23Start setting dso_local for COFF.Rafael Espindola
With this there are still some GVs where we don't set dso_local because setGVProperties is never called. I intend to fix that in followup commits. This is just the bare minimum to teach shouldAssumeDSOLocal what it should do for COFF. llvm-svn: 325915
2015-12-15clang/test/CodeGen/ms_this.cpp: Fix for -Asserts.NAKAMURA Takumi
llvm-svn: 255690
2015-12-15Fix clang/test/CodeGen/ms_this.cpp.NAKAMURA Takumi
llvm-svn: 255685
2015-12-15Unsupport test that should not be run on HexagonKrzysztof Parzyszek
llvm-svn: 255667
2015-12-15[Microsoft][C++] Clang doesn't support a use of "this" pointer inside inline ↵Michael Zuckerman
asm add triple to test Differential Revision: http://reviews.llvm.org/D15115 llvm-svn: 255647
2015-12-15[Microsoft][C++] Clang doesn't support a use of "this" pointer inside inline asmMichael Zuckerman
Clang doesn’t support a use of “this” pointer inside inline asm. When I tried to compile a class or a struct (see example) with an inline asm that contains "this" pointer. Clang returns with an error. This patch fixes that. error: expected unqualified-id For example: ''' struct A { void f() { __asm mov eax, this // error: expected unqualified-id } }; ''' Differential Revision: http://reviews.llvm.org/D15115 llvm-svn: 255645