mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-07 08:34:59 +00:00
a2ee433c8d
This adds Clang support for the ARM64 backend. There are definitely still some rough edges, so please bring up any issues you see with this patch. As with the LLVM commit though, we think it'll be more useful for merging with AArch64 from within the tree. llvm-svn: 205100
18 lines
400 B
Objective-C
18 lines
400 B
Objective-C
// RUN: %clang_cc1 -triple arm64-apple-ios -emit-llvm -o - %s | FileCheck %s
|
|
// rdar://12617764
|
|
|
|
// CHECK: @"OBJC_IVAR_$_I.IVAR2" = global i32 8
|
|
// CHECK: @"OBJC_IVAR_$_I.IVAR1" = global i32 0
|
|
@interface I
|
|
{
|
|
id IVAR1;
|
|
id IVAR2;
|
|
}
|
|
@end
|
|
|
|
@implementation I
|
|
// CHECK: [[IVAR:%.*]] = load i32* @"OBJC_IVAR_$_I.IVAR2"
|
|
// CHECK: [[CONV:%.*]] = sext i32 [[IVAR]] to i64
|
|
- (id) METH { return IVAR2; }
|
|
@end
|