diff options
| author | Tanya Lattner <tonic@nondot.org> | 2007-06-15 22:26:58 +0000 |
|---|---|---|
| committer | Tanya Lattner <tonic@nondot.org> | 2007-06-15 22:26:58 +0000 |
| commit | e199f97fa8a70441e509450e3db56c6e19e7d68e (patch) | |
| tree | 19344990d12eab6304ff50213ed611ff970ba655 | |
| parent | 23402fcaef57a682d491ac4f5834e05a9ef9d4ef (diff) | |
| download | bcm5719-llvm-e199f97fa8a70441e509450e3db56c6e19e7d68e.tar.gz bcm5719-llvm-e199f97fa8a70441e509450e3db56c6e19e7d68e.zip | |
Codegen support (stripped out) for the annotate attribute.
llvm-svn: 37608
| -rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index ad6feb49180..24ed4d3405d 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp @@ -711,6 +711,9 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) { case Intrinsic::eh_filter: break; // Simply strip out debugging and eh intrinsics + case Intrinsic::var_annotation: + break; // Strip out annotate intrinsic + case Intrinsic::memcpy_i32: case Intrinsic::memcpy_i64: { static Constant *MemcpyFCache = 0; diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index c9ed8b62473..d1a5b88ed24 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2774,6 +2774,10 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { case Intrinsic::prefetch: // FIXME: Currently discarding prefetches. return 0; + + case Intrinsic::var_annotation: + // Discard annotate attributes + return 0; } } |

