diff options
| author | Julien Lerouge <jlerouge@apple.com> | 2012-04-28 17:39:16 +0000 |
|---|---|---|
| committer | Julien Lerouge <jlerouge@apple.com> | 2012-04-28 17:39:16 +0000 |
| commit | 4a5b4443711edbd4ea06447a76ee3b464df9f22e (patch) | |
| tree | dff88c7e1c39c1b3b9407469fcb593fce399d082 /llvm/lib/CodeGen/MachineModuleInfoImpls.cpp | |
| parent | 9de0b35648f2ede749ef54adee302fd7afda0982 (diff) | |
| download | bcm5719-llvm-4a5b4443711edbd4ea06447a76ee3b464df9f22e.tar.gz bcm5719-llvm-4a5b4443711edbd4ea06447a76ee3b464df9f22e.zip | |
Currently __builtin_annotation() only annotates an i32.
i32 __builtin_annotation(i32, string);
Applying it to i64 (e.g., long long) generates the following IR.
trunc i64 {{.*}} to i32
call i32 @llvm.annotation.i32
zext i32 {{.*}} to i64
The redundant truncation and extension make the result difficult to use.
This patch makes __builtin_annotation() generic.
type __builtin_annotation(type, string);
For the i64 example, it simplifies the generated IR to:
call i64 @llvm.annotation.i64
Patch by Xi Wang!
llvm-svn: 155764
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfoImpls.cpp')
0 files changed, 0 insertions, 0 deletions

