]> granicus.if.org Git - llvm/commitdiff
[AVR] Document some public functions
authorDylan McKay <me@dylanmckay.io>
Sun, 15 Jul 2018 07:24:27 +0000 (07:24 +0000)
committerDylan McKay <me@dylanmckay.io>
Sun, 15 Jul 2018 07:24:27 +0000 (07:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337122 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AVR/AVR.h

index 2535b63dccdd1ba35614e6406944b39da964e234..48327fd377b21e47bba00572e2780f509af1ce07 100644 (file)
@@ -37,8 +37,10 @@ void initializeAVRRelaxMemPass(PassRegistry&);
 /// Contains the AVR backend.
 namespace AVR {
 
+/// An integer that identifies all of the supported AVR address spaces.
 enum AddressSpace { DataMemory, ProgramMemory };
 
+/// Checks if a given type is a pointer to program memory.
 template <typename T> bool isProgramMemoryAddress(T *V) {
   return cast<PointerType>(V->getType())->getAddressSpace() == ProgramMemory;
 }