projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26fc063
)
[AVR] Document some public functions
author
Dylan McKay
<me@dylanmckay.io>
Sun, 15 Jul 2018 07:24:27 +0000
(07:24 +0000)
committer
Dylan McKay
<me@dylanmckay.io>
Sun, 15 Jul 2018 07:24:27 +0000
(07:24 +0000)
llvm-svn: 337122
llvm/lib/Target/AVR/AVR.h
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AVR/AVR.h
b/llvm/lib/Target/AVR/AVR.h
index
2535b63
..
48327fd
100644
(file)
--- 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 <typename T> bool isProgramMemoryAddress(T *V) {
return cast<PointerType>(V->getType())->getAddressSpace() == ProgramMemory;
}