From: Dylan McKay Date: Sun, 15 Jul 2018 07:24:27 +0000 (+0000) Subject: [AVR] Document some public functions X-Git-Tag: llvmorg-7.0.0-rc1~1402 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0603bae41cf228ba6489d9aa320835abcce509e5;p=platform%2Fupstream%2Fllvm.git [AVR] Document some public functions llvm-svn: 337122 --- diff --git a/llvm/lib/Target/AVR/AVR.h b/llvm/lib/Target/AVR/AVR.h index 2535b63..48327fd 100644 --- a/llvm/lib/Target/AVR/AVR.h +++ b/llvm/lib/Target/AVR/AVR.h @@ -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 bool isProgramMemoryAddress(T *V) { return cast(V->getType())->getAddressSpace() == ProgramMemory; }