Displaying 20 results from an estimated 1200 matches similar to: "[LLVMdev] LLVM 3.5 support for Microsoft Windows Structured Exception Handling?"
2014 Jul 25
3
[LLVMdev] Clang binaries for Windows x86-64?
I am trying to find Clang binaries to download for the Windows x86-64 target and have not been successful.
Do any such binaries exist?
Thank you,
Simon Koeman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140725/09d99203/attachment.html>
2015 Apr 16
2
[LLVMdev] Exception filter IR model
Hi,
I have a question about the IR model for SEH filters (as I want to use the same model for CLR filters). In particular, when an outer filter is invoked before entering an inner finally, which piece of IR reflects the filter's side-effects? To take a concrete example, consider this C code:
void foo() {
int x;
__try {
x = 0;
__try {
x = 2;
may_throw();
}
2011 Jun 12
5
[LLVMdev] Is LLVM expressive enough to represent asynchronous exceptions?
Is LLVM expressive enough to represent asynchronous exceptions?
---------------------------------------------------------------
Summary: Need new LLVM instructions or extending of all instructions.
C++ exceptions are synchronous: the compiler knows when/where they are
being raised.
Asynchronous exceptions can be raised at any time. For example, an
integer divide-by-zero may raise an
2014 Nov 10
2
[LLVMdev] RFC: How to represent SEH (__try / __except) in LLVM IR
Moving this month old RFC to llvmdev. Not sure why I sent this to cfe-dev
in the first place...
---
Based on code review discussion from John, he thinks filter expressions
should be emitted into the body of the function with the try, rather than
being outlined by the frontend.
Instead of having the frontend create filter functions, we would use labels
in place of typeinfo. The IR would look
2020 May 03
2
[RFC] [Windows SEH] Local_Unwind (Jumping out of a _finally)
Hi,
Per Reid’s feedback, I have separated two SEH missing features.
This thread now is only focusing on _local_unwind(), Jumping out of _finally.
The design is documented in Wiki here: https://github.com/tentzen/llvm-project/wiki/Windows-SEH:-Local_Unwind-(aka:-Jumping-Out-of-_Finally)
The implementation can be seen here:
2020 Apr 15
2
[RFC] [Windows SEH][-EHa] Support Hardware Exception Handling
Hi,
This is a spin-off of previous Windows SEH RFC below. This RFC only focus on supporting HW Exception Handling.
A detailed implementation can be seen in here: https://github.com/tentzen/llvm-project/commit/8a2421c274b683051e456cbe12c177e3b934fb5e
It passes all MSVC SEH suite (excluding those with “Jumping out of _finally” ( _Local_Unwind)).
Thanks,
--Ten
**** The rules for C code: ****
2019 Nov 08
2
Exceptions on Windows & MSVC
Hello everyone,
I was wondering what is the status regarding exceptions for the windows-msvc target? The corresponding part of the documentation (llvm/decs/ExceptionHandling.rst) hasn't been updated since 2015, was there any progress since?
This is most likely known, but there's significant divergence between the behavior of MSVC cl.exe and clang-cl.exe:
Consider:
void crash() {
2020 Apr 16
2
[RFC] [Windows SEH][-EHa] Support Hardware Exception Handling
Hi, Eli,
Why are you under the impression that threw_exception() will not be called if optimizations are enabled? I don’t know if the -EHa Spec is clearly described in MSFT Webs. At least this proposal has described the rules for both C & C++ code.
The very first rule clearly said that “no exception can move in or out of _try region., i.e., no potential faulty instruction can be moved
2014 Dec 19
5
[LLVMdev] Windows EH support
Hi Reid,
I'm trying to get a "big picture" view of everything that needs to be done for clang and llvm to support SEH and C++ exception handling for the "msvc" environment. I've put together a list, including work in progress, but I'm guessing that I've missed some details. Can you look this over and tell me if it matches your idea of what needs to be done?
2015 May 18
2
[LLVMdev] RFC: New EH representation for MSVC compatibility
On Sat, May 16, 2015 at 7:29 AM, Steve Cheng <steve.ckp at gmail.com> wrote:
> On 2015-05-15 18:37:58 -0400, Reid Kleckner said:
>
> After a long tale of sorrow and woe, my colleagues and I stand here
>> before you defeated. The Itanium EH representation is not amenable to
>> implementing MSVC-compatible exceptions. We need a new representation that
>> preserves
2015 May 18
2
[LLVMdev] RFC: New EH representation for MSVC compatibility
On Mon, May 18, 2015 at 11:48 AM, Steve Cheng <steve.ckp at gmail.com> wrote:
> On 2015-05-18 13:32:54 -0400, Reid Kleckner said:
>
>>
>> Right, doing our own personality function is possible, but still has half
>> the challenge of using __CxxFrameHandler3, and introduces a new runtime
>> dependency that isn't there currently. Given that it won't save
2011 Jun 12
0
[LLVMdev] Is LLVM expressive enough to represent asynchronous exceptions?
On 11-06-12 12:01 AM, Sohail Somani wrote:
> Is LLVM expressive enough to represent asynchronous exceptions?
> ---------------------------------------------------------------
>
> Summary: Need new LLVM instructions or extending of all instructions.
>
> C++ exceptions are synchronous: the compiler knows when/where they are
> being raised.
>
> Asynchronous exceptions can
2012 Sep 17
2
[LLVMdev] Detail question about how to implement Win64 SEH
Hi!
I try to add more functionality to Win64 exception handling, based on
the posted patches from Charles Davis and João Matos.
But I have a question about how to map SEH handling to LLVM IR.
The basic structure of SEH in C is as follows:
__try {
// Do something.
}
__except (filter(GetExceptionCode(), GetExceptionInformation()))
{
// Handle exception
}
How to
2020 Apr 16
2
[RFC] [Windows SEH][-EHa] Support Hardware Exception Handling
As stated in the design paragraph, this design does not intend to model precise CFG at instruction level since it’s complicated and unnecessary.
As long as we comply C and C++ rules listed below, we achieve -EHa semantic. There is NO need to precisely model HW exception control flow at instruction-level.
Your example about memcpy() is just a bug in current implementation. I will fix it so that
2014 Nov 13
2
[LLVMdev] RFC: How to represent SEH (__try / __except) in LLVM IR
Hi Reid,
I’ve been following your proposal, and I’d be interested in helping out if I can. My main interest right now is in enabling C++ exception handling in clang for native (i.e. not mingw/cygwin) Windows targets (both 32-bit and 64-bit), but if I understand things correctly that will be closely related to your SEH work under the hood.
I’m still trying to get up to speed on what is and is
2012 Sep 17
0
[LLVMdev] Detail question about how to implement Win64 SEH
Hi Kai,
> I try to add more functionality to Win64 exception handling, based on the posted
> patches from Charles Davis and João Matos.
>
> But I have a question about how to map SEH handling to LLVM IR.
are you sure you don't mean: map LLVM IR to SEH? I.e. are you talking about
how to implement LLVM's "dwarf" exception handling intrinsics and landingpad
2020 Apr 01
2
[RFC] [Windows SEH] Local_Unwind (Jumping out of a _finally) and -EHa (Hardware Exception Handling)
Hi, all,
The intend of this thread is to complete the support for Windows SEH.
Currently there are two major missing features: Jumping out of a _finally and Hardware exception handling.
The document below is my proposed design and implementation to fully support SEH on LLVM.
I have completely implemented this design on a branch in repo:
2015 Jun 18
3
[LLVMdev] Clang 3.6.1 integration with MSVC++
Hi,
This page http://clang.llvm.org/docs/MSVCCompatibility.html says clang-cl
supports C ++ exceptions, but I cannot compile code with simple try{}catch{}
error : cannot compile this throw expression yet
What am i doing wrong?
--
WBR,
Arkady Shapkin aka Dragon
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2014 Jan 17
2
[LLVMdev] Unable to catch Win64 exceptions that occur in the mcjit(ted) code
Hi all,
In my MSVC-compiled project I am using MCJIT to run some generated code. I
faced that in case of Win64 ('x86_64-pc-win32-elf') __try/__except block
doesn't work - the stack can not be unwound.
I have found that the only way to fix it is implementing my own
*registerEHFrames* function of the Memory Manager (but I'm not sure this
helps).
Maybe someone had a success solving
2014 Mar 09
2
PATCH: OS SSE support detection for GCC on Windows
libFLAC for Windows compiled with GCC/MinGW can't detect SSE OS support:
it can't use GCC+Linux detection code and can't use MSVC+Win32 code that
uses SEH (__try/__except). So it doesn't use any SSE/SSE2/etc routines.
One way to fix it is to call configure script with --enable-sse
(flac will probably crash on Win95/WinNT4 but who cares).
Another way is to add a new code just for