mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Remap frame variables for native Windows exception handling.
Differential Revision: http://reviews.llvm.org/D7770 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ee7b509aa3
commit
1d10231766
@ -153,6 +153,9 @@ public:
|
||||
virtual CloningAction handleInstruction(ValueToValueMapTy &VMap,
|
||||
const Instruction *Inst,
|
||||
BasicBlock *NewBB) = 0;
|
||||
|
||||
virtual ValueMapTypeRemapper *getTypeRemapper() { return nullptr; }
|
||||
virtual ValueMaterializer *getValueMaterializer() { return nullptr; }
|
||||
};
|
||||
|
||||
void CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -261,6 +261,8 @@ namespace {
|
||||
ClonedCodeInfo *CodeInfo;
|
||||
const DataLayout *DL;
|
||||
CloningDirector *Director;
|
||||
ValueMapTypeRemapper *TypeMapper;
|
||||
ValueMaterializer *Materializer;
|
||||
|
||||
public:
|
||||
PruningFunctionCloner(Function *newFunc, const Function *oldFunc,
|
||||
@ -274,6 +276,14 @@ namespace {
|
||||
VMap(valueMap), ModuleLevelChanges(moduleLevelChanges),
|
||||
NameSuffix(nameSuffix), CodeInfo(codeInfo), DL(DL),
|
||||
Director(Director) {
|
||||
// These are optional components. The Director may return null.
|
||||
if (Director) {
|
||||
TypeMapper = Director->getTypeRemapper();
|
||||
Materializer = Director->getValueMaterializer();
|
||||
} else {
|
||||
TypeMapper = nullptr;
|
||||
Materializer = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
/// CloneBlock - The specified block is found to be reachable, clone it and
|
||||
@ -344,7 +354,8 @@ void PruningFunctionCloner::CloneBlock(const BasicBlock *BB,
|
||||
// nodes for which we defer processing until we update the CFG.
|
||||
if (!isa<PHINode>(NewInst)) {
|
||||
RemapInstruction(NewInst, VMap,
|
||||
ModuleLevelChanges ? RF_None : RF_NoModuleLevelChanges);
|
||||
ModuleLevelChanges ? RF_None : RF_NoModuleLevelChanges,
|
||||
TypeMapper, Materializer);
|
||||
|
||||
// If we can simplify this instruction to some other value, simply add
|
||||
// a mapping to that value rather than inserting a new instruction into
|
||||
@ -459,6 +470,14 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
|
||||
CloningDirector *Director) {
|
||||
assert(NameSuffix && "NameSuffix cannot be null!");
|
||||
|
||||
ValueMapTypeRemapper *TypeMapper = nullptr;
|
||||
ValueMaterializer *Materializer = nullptr;
|
||||
|
||||
if (Director) {
|
||||
TypeMapper = Director->getTypeRemapper();
|
||||
Materializer = Director->getValueMaterializer();
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
// If the cloning starts at the begining of the function, verify that
|
||||
// the function arguments are mapped.
|
||||
@ -513,7 +532,8 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
|
||||
// Finally, remap the terminator instructions, as those can't be remapped
|
||||
// until all BBs are mapped.
|
||||
RemapInstruction(NewBB->getTerminator(), VMap,
|
||||
ModuleLevelChanges ? RF_None : RF_NoModuleLevelChanges);
|
||||
ModuleLevelChanges ? RF_None : RF_NoModuleLevelChanges,
|
||||
TypeMapper, Materializer);
|
||||
}
|
||||
|
||||
// Defer PHI resolution until rest of function is resolved, PHI resolution
|
||||
|
@ -1,83 +1,83 @@
|
||||
; RUN: opt -mtriple=x86_64-pc-windows-msvc -winehprepare -S -o - < %s | FileCheck %s
|
||||
|
||||
; This test is based on the following code:
|
||||
;
|
||||
; void test()
|
||||
; {
|
||||
; try {
|
||||
; may_throw();
|
||||
; } catch (...) {
|
||||
; handle_exception();
|
||||
; }
|
||||
; }
|
||||
;
|
||||
; Parts of the IR have been hand-edited to simplify the test case.
|
||||
; The full IR will be restored when Windows C++ EH support is complete.
|
||||
|
||||
; ModuleID = 'catch-all.cpp'
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-pc-windows-msvc"
|
||||
|
||||
; Function Attrs: uwtable
|
||||
define void @_Z4testv() #0 {
|
||||
entry:
|
||||
%exn.slot = alloca i8*
|
||||
%ehselector.slot = alloca i32
|
||||
invoke void @_Z9may_throwv()
|
||||
to label %invoke.cont unwind label %lpad
|
||||
|
||||
invoke.cont: ; preds = %entry
|
||||
br label %try.cont
|
||||
|
||||
lpad: ; preds = %entry
|
||||
%0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
|
||||
catch i8* null
|
||||
%1 = extractvalue { i8*, i32 } %0, 0
|
||||
store i8* %1, i8** %exn.slot
|
||||
%2 = extractvalue { i8*, i32 } %0, 1
|
||||
store i32 %2, i32* %ehselector.slot
|
||||
br label %catch
|
||||
|
||||
catch: ; preds = %lpad
|
||||
%exn = load i8** %exn.slot
|
||||
%3 = call i8* @llvm.eh.begincatch(i8* %exn) #3
|
||||
call void @_Z16handle_exceptionv()
|
||||
br label %invoke.cont2
|
||||
|
||||
invoke.cont2: ; preds = %catch
|
||||
call void @llvm.eh.endcatch()
|
||||
br label %try.cont
|
||||
|
||||
try.cont: ; preds = %invoke.cont2, %invoke.cont
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: define i8* @_Z4testv.catch(i8*, i8*) {
|
||||
; CHECK: catch.entry:
|
||||
; CHECK: %eh.alloc = call i8* @llvm.framerecover(i8* bitcast (void ()* @_Z4testv to i8*), i8* %1)
|
||||
; CHECK: %ehdata = bitcast i8* %eh.alloc to %struct._Z4testv.ehdata*
|
||||
; CHECK: %eh.obj.ptr = getelementptr inbounds %struct._Z4testv.ehdata* %ehdata, i32 0, i32 1
|
||||
; CHECK: %eh.obj = load i8** %eh.obj.ptr
|
||||
; CHECK: call void @_Z16handle_exceptionv()
|
||||
; CHECK: ret i8* blockaddress(@_Z4testv, %try.cont)
|
||||
; CHECK: }
|
||||
|
||||
declare void @_Z9may_throwv() #1
|
||||
|
||||
declare i32 @__CxxFrameHandler3(...)
|
||||
|
||||
declare i8* @llvm.eh.begincatch(i8*)
|
||||
|
||||
declare void @_Z16handle_exceptionv() #1
|
||||
|
||||
declare void @llvm.eh.endcatch()
|
||||
|
||||
attributes #0 = { uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
||||
attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
||||
attributes #2 = { noinline noreturn nounwind }
|
||||
attributes #3 = { nounwind }
|
||||
attributes #4 = { noreturn nounwind }
|
||||
|
||||
!llvm.ident = !{!0}
|
||||
|
||||
!0 = !{!"clang version 3.7.0 (trunk 226027)"}
|
||||
; RUN: opt -mtriple=x86_64-pc-windows-msvc -winehprepare -S -o - < %s | FileCheck %s
|
||||
|
||||
; This test is based on the following code:
|
||||
;
|
||||
; void test()
|
||||
; {
|
||||
; try {
|
||||
; may_throw();
|
||||
; } catch (...) {
|
||||
; handle_exception();
|
||||
; }
|
||||
; }
|
||||
;
|
||||
; Parts of the IR have been hand-edited to simplify the test case.
|
||||
; The full IR will be restored when Windows C++ EH support is complete.
|
||||
|
||||
; ModuleID = 'catch-all.cpp'
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-pc-windows-msvc"
|
||||
|
||||
; Function Attrs: uwtable
|
||||
define void @_Z4testv() #0 {
|
||||
entry:
|
||||
%exn.slot = alloca i8*
|
||||
%ehselector.slot = alloca i32
|
||||
invoke void @_Z9may_throwv()
|
||||
to label %invoke.cont unwind label %lpad
|
||||
|
||||
invoke.cont: ; preds = %entry
|
||||
br label %try.cont
|
||||
|
||||
lpad: ; preds = %entry
|
||||
%0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
|
||||
catch i8* null
|
||||
%1 = extractvalue { i8*, i32 } %0, 0
|
||||
store i8* %1, i8** %exn.slot
|
||||
%2 = extractvalue { i8*, i32 } %0, 1
|
||||
store i32 %2, i32* %ehselector.slot
|
||||
br label %catch
|
||||
|
||||
catch: ; preds = %lpad
|
||||
%exn = load i8** %exn.slot
|
||||
%3 = call i8* @llvm.eh.begincatch(i8* %exn) #3
|
||||
call void @_Z16handle_exceptionv()
|
||||
br label %invoke.cont2
|
||||
|
||||
invoke.cont2: ; preds = %catch
|
||||
call void @llvm.eh.endcatch()
|
||||
br label %try.cont
|
||||
|
||||
try.cont: ; preds = %invoke.cont2, %invoke.cont
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: define i8* @_Z4testv.catch(i8*, i8*) {
|
||||
; CHECK: catch.entry:
|
||||
; CHECK: %eh.alloc = call i8* @llvm.framerecover(i8* bitcast (void ()* @_Z4testv to i8*), i8* %1)
|
||||
; CHECK: %eh.data = bitcast i8* %eh.alloc to %struct._Z4testv.ehdata*
|
||||
; CHECK: %eh.obj.ptr = getelementptr inbounds %struct._Z4testv.ehdata* %eh.data, i32 0, i32 1
|
||||
; CHECK: %eh.obj = load i8** %eh.obj.ptr
|
||||
; CHECK: call void @_Z16handle_exceptionv()
|
||||
; CHECK: ret i8* blockaddress(@_Z4testv, %try.cont)
|
||||
; CHECK: }
|
||||
|
||||
declare void @_Z9may_throwv() #1
|
||||
|
||||
declare i32 @__CxxFrameHandler3(...)
|
||||
|
||||
declare i8* @llvm.eh.begincatch(i8*)
|
||||
|
||||
declare void @_Z16handle_exceptionv() #1
|
||||
|
||||
declare void @llvm.eh.endcatch()
|
||||
|
||||
attributes #0 = { uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
||||
attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
||||
attributes #2 = { noinline noreturn nounwind }
|
||||
attributes #3 = { nounwind }
|
||||
attributes #4 = { noreturn nounwind }
|
||||
|
||||
!llvm.ident = !{!0}
|
||||
|
||||
!0 = !{!"clang version 3.7.0 (trunk 226027)"}
|
||||
|
@ -1,102 +1,123 @@
|
||||
; RUN: opt -mtriple=x86_64-pc-windows-msvc -winehprepare -S -o - < %s | FileCheck %s
|
||||
|
||||
; This test is based on the following code:
|
||||
;
|
||||
; void test()
|
||||
; {
|
||||
; try {
|
||||
; may_throw();
|
||||
; } catch (int) {
|
||||
; handle_int();
|
||||
; }
|
||||
; }
|
||||
;
|
||||
; Parts of the IR have been hand-edited to simplify the test case.
|
||||
; The full IR will be restored when Windows C++ EH support is complete.
|
||||
|
||||
;ModuleID = 'cppeh-catch-scalar.cpp'
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-pc-windows-msvc"
|
||||
|
||||
@_ZTIi = external constant i8*
|
||||
|
||||
; Function Attrs: uwtable
|
||||
define void @_Z4testv() #0 {
|
||||
entry:
|
||||
%exn.slot = alloca i8*
|
||||
%ehselector.slot = alloca i32
|
||||
invoke void @_Z9may_throwv()
|
||||
to label %invoke.cont unwind label %lpad
|
||||
|
||||
invoke.cont: ; preds = %entry
|
||||
br label %try.cont
|
||||
|
||||
lpad: ; preds = %entry
|
||||
%0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
|
||||
catch i8* bitcast (i8** @_ZTIi to i8*)
|
||||
%1 = extractvalue { i8*, i32 } %0, 0
|
||||
store i8* %1, i8** %exn.slot
|
||||
%2 = extractvalue { i8*, i32 } %0, 1
|
||||
store i32 %2, i32* %ehselector.slot
|
||||
br label %catch.dispatch
|
||||
|
||||
catch.dispatch: ; preds = %lpad
|
||||
%sel = load i32* %ehselector.slot
|
||||
%3 = call i32 @llvm.eh.typeid.for(i8* bitcast (i8** @_ZTIi to i8*)) #3
|
||||
%matches = icmp eq i32 %sel, %3
|
||||
br i1 %matches, label %catch, label %eh.resume
|
||||
|
||||
catch: ; preds = %catch.dispatch
|
||||
%exn11 = load i8** %exn.slot
|
||||
%4 = call i8* @llvm.eh.begincatch(i8* %exn11) #3
|
||||
%5 = bitcast i8* %4 to i32*
|
||||
call void @_Z10handle_intv()
|
||||
br label %invoke.cont2
|
||||
|
||||
invoke.cont2: ; preds = %catch
|
||||
call void @llvm.eh.endcatch() #3
|
||||
br label %try.cont
|
||||
|
||||
try.cont: ; preds = %invoke.cont2, %invoke.cont
|
||||
ret void
|
||||
|
||||
eh.resume: ; preds = %catch.dispatch
|
||||
%exn3 = load i8** %exn.slot
|
||||
%sel4 = load i32* %ehselector.slot
|
||||
%lpad.val = insertvalue { i8*, i32 } undef, i8* %exn3, 0
|
||||
%lpad.val5 = insertvalue { i8*, i32 } %lpad.val, i32 %sel4, 1
|
||||
resume { i8*, i32 } %lpad.val5
|
||||
}
|
||||
|
||||
; CHECK: define i8* @_Z4testv.catch(i8*, i8*) {
|
||||
; CHECK: catch.entry:
|
||||
; CHECK: %eh.alloc = call i8* @llvm.framerecover(i8* bitcast (void ()* @_Z4testv to i8*), i8* %1)
|
||||
; CHECK: %ehdata = bitcast i8* %eh.alloc to %struct._Z4testv.ehdata*
|
||||
; CHECK: %eh.obj.ptr = getelementptr inbounds %struct._Z4testv.ehdata* %ehdata, i32 0, i32 1
|
||||
; CHECK: %eh.obj = load i8** %eh.obj.ptr
|
||||
; CHECK: %2 = bitcast i8* %eh.obj to i32*
|
||||
; CHECK: call void @_Z10handle_intv()
|
||||
; CHECK: ret i8* blockaddress(@_Z4testv, %try.cont)
|
||||
; CHECK: }
|
||||
|
||||
declare void @_Z9may_throwv() #1
|
||||
|
||||
declare i32 @__CxxFrameHandler3(...)
|
||||
|
||||
; Function Attrs: nounwind readnone
|
||||
declare i32 @llvm.eh.typeid.for(i8*) #2
|
||||
|
||||
declare i8* @llvm.eh.begincatch(i8*)
|
||||
|
||||
declare void @llvm.eh.endcatch()
|
||||
|
||||
declare void @_Z10handle_intv() #1
|
||||
|
||||
attributes #0 = { uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
||||
attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
||||
attributes #2 = { nounwind readnone }
|
||||
attributes #3 = { nounwind }
|
||||
|
||||
!llvm.ident = !{!0}
|
||||
|
||||
!0 = !{!"clang version 3.7.0 (trunk 227474) (llvm/trunk 227508)"}
|
||||
; RUN: opt -mtriple=x86_64-pc-windows-msvc -winehprepare -S -o - < %s | FileCheck %s
|
||||
|
||||
; This test is based on the following code:
|
||||
;
|
||||
; void test()
|
||||
; {
|
||||
; try {
|
||||
; may_throw();
|
||||
; } catch (int i) {
|
||||
; handle_int(i);
|
||||
; }
|
||||
; }
|
||||
;
|
||||
; Parts of the IR have been hand-edited to simplify the test case.
|
||||
; The full IR will be restored when Windows C++ EH support is complete.
|
||||
|
||||
;ModuleID = 'cppeh-catch-scalar.cpp'
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-pc-windows-msvc"
|
||||
|
||||
; This is the structure that will get created for the frame allocation.
|
||||
; CHECK: %struct._Z4testv.ehdata = type { i32, i8*, i32 }
|
||||
|
||||
@_ZTIi = external constant i8*
|
||||
|
||||
; The function entry will be rewritten like this.
|
||||
; CHECK: define void @_Z4testv() #0 {
|
||||
; CHECK: entry:
|
||||
; CHECK: %frame.alloc = call i8* @llvm.frameallocate(i32 24)
|
||||
; CHECK: %eh.data = bitcast i8* %frame.alloc to %struct._Z4testv.ehdata*
|
||||
; CHECK: %exn.slot = alloca i8*
|
||||
; CHECK: %ehselector.slot = alloca i32
|
||||
; CHECK-NOT: %i = alloca i32, align 4
|
||||
; CHECK: %i = getelementptr inbounds %struct._Z4testv.ehdata* %eh.data, i32 0, i32 2
|
||||
|
||||
; Function Attrs: uwtable
|
||||
define void @_Z4testv() #0 {
|
||||
entry:
|
||||
%exn.slot = alloca i8*
|
||||
%ehselector.slot = alloca i32
|
||||
%i = alloca i32, align 4
|
||||
invoke void @_Z9may_throwv()
|
||||
to label %invoke.cont unwind label %lpad
|
||||
|
||||
invoke.cont: ; preds = %entry
|
||||
br label %try.cont
|
||||
|
||||
lpad: ; preds = %entry
|
||||
%0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
|
||||
catch i8* bitcast (i8** @_ZTIi to i8*)
|
||||
%1 = extractvalue { i8*, i32 } %0, 0
|
||||
store i8* %1, i8** %exn.slot
|
||||
%2 = extractvalue { i8*, i32 } %0, 1
|
||||
store i32 %2, i32* %ehselector.slot
|
||||
br label %catch.dispatch
|
||||
|
||||
catch.dispatch: ; preds = %lpad
|
||||
%sel = load i32* %ehselector.slot
|
||||
%3 = call i32 @llvm.eh.typeid.for(i8* bitcast (i8** @_ZTIi to i8*)) #3
|
||||
%matches = icmp eq i32 %sel, %3
|
||||
br i1 %matches, label %catch, label %eh.resume
|
||||
|
||||
catch: ; preds = %catch.dispatch
|
||||
%exn11 = load i8** %exn.slot
|
||||
%4 = call i8* @llvm.eh.begincatch(i8* %exn11) #3
|
||||
%5 = bitcast i8* %4 to i32*
|
||||
%6 = load i32* %5, align 4
|
||||
store i32 %6, i32* %i, align 4
|
||||
%7 = load i32* %i, align 4
|
||||
call void @_Z10handle_inti(i32 %7)
|
||||
br label %invoke.cont2
|
||||
|
||||
invoke.cont2: ; preds = %catch
|
||||
call void @llvm.eh.endcatch() #3
|
||||
br label %try.cont
|
||||
|
||||
try.cont: ; preds = %invoke.cont2, %invoke.cont
|
||||
ret void
|
||||
|
||||
eh.resume: ; preds = %catch.dispatch
|
||||
%exn3 = load i8** %exn.slot
|
||||
%sel4 = load i32* %ehselector.slot
|
||||
%lpad.val = insertvalue { i8*, i32 } undef, i8* %exn3, 0
|
||||
%lpad.val5 = insertvalue { i8*, i32 } %lpad.val, i32 %sel4, 1
|
||||
resume { i8*, i32 } %lpad.val5
|
||||
}
|
||||
|
||||
; CHECK: define i8* @_Z4testv.catch(i8*, i8*) {
|
||||
; CHECK: catch.entry:
|
||||
; CHECK: %eh.alloc = call i8* @llvm.framerecover(i8* bitcast (void ()* @_Z4testv to i8*), i8* %1)
|
||||
; CHECK: %eh.data = bitcast i8* %eh.alloc to %struct._Z4testv.ehdata*
|
||||
; CHECK: %eh.obj.ptr = getelementptr inbounds %struct._Z4testv.ehdata* %eh.data, i32 0, i32 1
|
||||
; CHECK: %eh.obj = load i8** %eh.obj.ptr
|
||||
; CHECK: %i = getelementptr inbounds %struct._Z4testv.ehdata* %eh.data, i32 0, i32 2
|
||||
; CHECK: %2 = bitcast i8* %eh.obj to i32*
|
||||
; CHECK: %3 = load i32* %2, align 4
|
||||
; CHECK: store i32 %3, i32* %i, align 4
|
||||
; CHECK: %4 = load i32* %i, align 4
|
||||
; CHECK: call void @_Z10handle_inti(i32 %4)
|
||||
; CHECK: ret i8* blockaddress(@_Z4testv, %try.cont)
|
||||
; CHECK: }
|
||||
|
||||
declare void @_Z9may_throwv() #1
|
||||
|
||||
declare i32 @__CxxFrameHandler3(...)
|
||||
|
||||
; Function Attrs: nounwind readnone
|
||||
declare i32 @llvm.eh.typeid.for(i8*) #2
|
||||
|
||||
declare i8* @llvm.eh.begincatch(i8*)
|
||||
|
||||
declare void @llvm.eh.endcatch()
|
||||
|
||||
declare void @_Z10handle_inti(i32) #1
|
||||
|
||||
attributes #0 = { uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
||||
attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
||||
attributes #2 = { nounwind readnone }
|
||||
attributes #3 = { nounwind }
|
||||
|
||||
!llvm.ident = !{!0}
|
||||
|
||||
!0 = !{!"clang version 3.7.0 (trunk 227474) (llvm/trunk 227508)"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user