[llvm] r337122 - [AVR] Document some public functions

Dylan McKay via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 15 00:24:27 PDT 2018


Author: dylanmckay
Date: Sun Jul 15 00:24:27 2018
New Revision: 337122

URL: http://llvm.org/viewvc/llvm-project?rev=337122&view=rev
Log:
[AVR] Document some public functions

Modified:
    llvm/trunk/lib/Target/AVR/AVR.h

Modified: llvm/trunk/lib/Target/AVR/AVR.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/AVR.h?rev=337122&r1=337121&r2=337122&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/AVR.h (original)
+++ llvm/trunk/lib/Target/AVR/AVR.h Sun Jul 15 00:24:27 2018
@@ -37,8 +37,10 @@ void initializeAVRRelaxMemPass(PassRegis
 /// 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;
 }




More information about the llvm-commits mailing list