Skip to content

Commit

Permalink
[AVR] Document some public functions
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337122 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dylanmckay committed Jul 15, 2018
1 parent cfe3c91 commit f23126d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Target/AVR/AVR.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f23126d

Please sign in to comment.