diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-12 16:34:30 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-12 16:34:30 +0000 |
commit | e9bc2ba256e664fbcc18c9174f70d97eed668bb6 (patch) | |
tree | d2268255ffe198d38ea34de9bee692a85bf66d17 /llvm/lib/VMCore/Instructions.cpp | |
parent | c79304461a7a1bc04d365b8085b78afc8694fc71 (diff) | |
download | bcm5719-llvm-e9bc2ba256e664fbcc18c9174f70d97eed668bb6.tar.gz bcm5719-llvm-e9bc2ba256e664fbcc18c9174f70d97eed668bb6.zip |
Update comments.
llvm-svn: 50974
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index 78e7b17a669..e901f3e76e5 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/lib/VMCore/Instructions.cpp @@ -1605,10 +1605,9 @@ bool CastInst::isLosslessCast() const { /// changed in order to effect the cast. Essentially, it identifies cases where /// no code gen is necessary for the cast, hence the name no-op cast. For /// example, the following are all no-op casts: -/// # bitcast uint %X, int -/// # bitcast uint* %x, sbyte* -/// # bitcast vector< 2 x int > %x, vector< 4 x short> -/// # ptrtoint uint* %x, uint ; on 32-bit plaforms only +/// # bitcast i32* %x to i8* +/// # bitcast <2 x i32> %x to <4 x i16> +/// # ptrtoint i32* %x to i32 ; on 32-bit plaforms only /// @brief Determine if a cast is a no-op. bool CastInst::isNoopCast(const Type *IntPtrTy) const { switch (getOpcode()) { |