From f23126d10eeb5ffd5f5cfddd61f84d72261fb2bc Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Sun, 15 Jul 2018 07:24:27 +0000 Subject: [PATCH] [AVR] Document some public functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337122 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AVR/AVR.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/AVR/AVR.h b/lib/Target/AVR/AVR.h index 2535b63dccd..48327fd377b 100644 --- a/lib/Target/AVR/AVR.h +++ b/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; } -- 2.50.1