Clean up some commentary.
authorJim Laskey <jlaskey@mac.com>
Fri, 24 Mar 2006 10:00:56 +0000 (10:00 +0000)
committerJim Laskey <jlaskey@mac.com>
Fri, 24 Mar 2006 10:00:56 +0000 (10:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27064 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/SubtargetFeature.h
lib/Target/SubtargetFeature.cpp
lib/VMCore/IntrinsicInst.cpp

index a9f7a71921b6fb431ebaddca872212669524f981..89e6efef37664228de13e6de0a68d51f471a2259 100644 (file)
@@ -2,7 +2,7 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by Jim Laskey and is distributed under the 
+// This file was developed by James M. Laskey and is distributed under the 
 // University of Illinois Open Source License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
index 7856ddb66a48f2cc309f53ac1f5b666f476e98b6..de48f4fbcb81ee33b1111d46c2c07497049ea350 100644 (file)
@@ -2,7 +2,7 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by Jim Laskey and is distributed under the 
+// This file was developed by James M. Laskey and is distributed under the 
 // University of Illinois Open Source License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
index e34cd5bbefd4bc8889e1c8e0728760cb4250fc4b..ff00a49896d6d1eb5ca3f91c2e5ba9fd6db021a4 100644 (file)
@@ -2,10 +2,28 @@
 //
 //                     The LLVM Compiler Infrastructure
 //
-// This file was developed by the LLVM research group and is distributed under
+// This file was developed by James M. Laskey and is distributed under
 // the University of Illinois Open Source License. See LICENSE.TXT for details.
 //
 //===----------------------------------------------------------------------===//
+//
+// This file implements methods that make it really easy to deal with intrinsic
+// functions with the isa/dyncast family of functions.  In particular, this
+// allows you to do things like:
+//
+//     if (DbgStopPointInst *SPI = dyn_cast<DbgStopPointInst>(Inst))
+//        ... SPI->getFileName() ... SPI->getDirectory() ...
+//
+// All intrinsic function calls are instances of the call instruction, so these
+// are all subclasses of the CallInst class.  Note that none of these classes
+// has state or virtual methods, which is an important part of this gross/neat
+// hack working.
+// 
+// In some cases, arguments to intrinsics need to be generic and are defined as
+// type pointer to empty struct { }*.  To access the real item of interest the
+// cast instruction needs to be stripped away. 
+//
+//===----------------------------------------------------------------------===//
 
 #include "llvm/IntrinsicInst.h"